开发者 |
jeffreyvr
jekrikken |
---|---|
更新时间 | 2016年2月12日 00:09 |
PHP版本: | 4.3 及以上 |
WordPress版本: | 4.4.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/members-multisite-user-roles-sync
directory, or install the plugin through the WordPress Multisite plugins screen directly.There is none. You simply activate it and it will work right away.
Yes, there is. See this example code:
<?php $members_mu_user_roles_sync = new Members_Mu_User_Roles_Sync(); $members_mu_user_roles_sync->add_role( $user_id, // user you want to add role to $roles = array(), // input array is needed $all_sites = TRUE ); ?>