{"id":23239,"date":"2013-05-06T09:24:06","date_gmt":"2013-05-06T09:24:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/shared-user-table-roles\/"},"modified":"2013-05-06T09:24:06","modified_gmt":"2013-05-06T09:24:06","slug":"shared-user-table-roles","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/shared-user-table-roles\/","author":10311731,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"3.5.2","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Shared User Table Roles","header_author":"wp_joris","header_description":"","assets_banners_color":"","last_updated":"2013-05-06 09:24:06","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/extend\/plugins\/shared-user-table-roles\/","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1955,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1915,2153,1917,19330],"plugin_category":[58,59],"plugin_contributors":[92815],"plugin_business_model":[],"class_list":["post-23239","plugin","type-plugin","status-publish","hentry","plugin_tags-roles","plugin_tags-user","plugin_tags-users","plugin_tags-wp-config","plugin_category-user-management","plugin_category-utilities-and-tools","plugin_contributors-wp_joris","plugin_committers-wp_joris"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/shared-user-table-roles.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>When sharing the user and usermeta table between multiple wordpress \ninstallations using the same database, any role given to the user is only valid \nfor a single wordpress installation.<\/p>\n\n<p>This plugin ensures user roles, user capabilities and user settings are \nshared between the multiple installations. This is configured using a wp-config \nconstant.<\/p>\n\n<p>Any role set in any of the installations will be reflected in all other \ninstallations.<\/p>\n\n<p>Caveats:<\/p>\n\n<ul>\n<li>Compatability with wordpress multisite is unknown<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>To set up multiple wordpress installations using the same database:<\/p>\n\n<ol>\n<li><p>Install all wordpress installations using the same database, but using a \ndifferent $table_prefix in wp_config.<\/p>\n\n<p>For example two installations with \"eng_\" and \"nld_\".<\/p><\/li>\n<li><p>Designate one wordpress installation as \"primary\". All other installations are\nsecondary<\/p>\n\n<p>For example the installation with the prefix \"eng_\".<\/p><\/li>\n<li><p>Install and activate this plugin on all secondary wordpress installations.<\/p>\n\n<p>In this example \"nld_\".<\/p><\/li>\n<li><p>On all secondary wordpress installations configure CUSTOM_USER_TABLE and \nCUSTOM_USER_META_TABLE in wp-config to use the tables (users and usermeta) \nof the primary installation.<\/p>\n\n<p>See below for an example<\/p><\/li>\n<li><p>On all secondary wordpress installations, set SHARED_USER_TABLE_ROLES_PREFIX \nto be equal to the table prefix of the primary installation.<\/p><\/li>\n<\/ol>\n\n<h4>Primary<\/h4>\n\n<p>For example the relevant wp-config settings for the primary installation would \nlook like:<\/p>\n\n<pre><code>    $table_prefix  = 'eng_';\n<\/code><\/pre>\n\n<h4>Secondary<\/h4>\n\n<p>For example the relevant wp-config settings for secondary installations would \nlook like:<\/p>\n\n<pre><code>    $table_prefix  = 'nld_';\n    define('SHARED_USER_TABLE_ROLES_PREFIX', 'eng_');\n    define('CUSTOM_USER_TABLE', 'eng_users');\n    define('CUSTOM_USER_META_TABLE', 'eng_usermeta');\n<\/code><\/pre>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>initial release<\/li>\n<\/ul>","raw_excerpt":"Share user roles when sharing the user table between multiple installations.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23239"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wp_joris"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23239"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23239"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23239"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23239"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23239"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}