Last active
December 11, 2023 15:34
-
-
Save carlodaniele/dcaa60b3cf6145e7f242efea24a2d9f9 to your computer and use it in GitHub Desktop.
A plugin to share users and usermeta tables between independent WordPress installations. This plugin requires CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE defined into wp-config file
When there are more than two sites to connect, an "or" is performed within the "If"
Ejm:
if ( $caps ){ update_user_meta( $user_id, $prefix_2 . 'capabilities', $caps ); "or" update_user_meta( $user_id, $prefix_3 . 'capabilities', $caps ); "or" update_user_meta( $user_id, $prefix_4 . 'capabilities', $caps ); }
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Single-sign on approach: https://zeropointdevelopment.com/how-to-single-sign-on-to-multiple-wordpress-sites/