Jump to content
IPS Community Suite 简体中文
Sign in to follow this  

WP Orphanage Plus

Recommended Posts

多个 WP 站点使用同一个用户数据表,以不同的表前缀区分不同站点的除用户之外的数据.


Plugin to promote users with no roles set (the orphans) to the role from other blog where they registered or to default if any found.

多个 WP 站点使用同一个用户数据表,以不同的表前缀区分不同站点的除用户之外的数据;

基于 MELONIQ.NET 的 WP-Orphanage Extended (version 1.1) ,进行代码优化和升级,兼容 WordPress 4.9.2+;

假如同一数据库有N个WordPress 站点的数据表,不同的 WordPress 站点以不同的 数据表前缀做区别, 其中有 www.site-1.com和 www.site-2.com 两个站点,想让 site-2 这个站点(数据表前缀为 s2_ )使用 site-1 这个站点(数据表前缀为 s1_ )的用户数据表,可以在 site-2 的 wp-config.php, 定义两个常量:

define('CUSTOM_USER_TABLE', 's1_users');
define('CUSTOM_USER_META_TABLE', 's1_usermeta');

Dev Log

1.0.0 : Based on WP-Orphanage Extended (version 1.1) by MELONIQ.NET



Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this