Completely replacing the login form
Short and simple: No. You’ll find a lot of stuff for wp-login.php on trac, but it seems that it won’t change.
Short and simple: No. You’ll find a lot of stuff for wp-login.php on trac, but it seems that it won’t change.
I ended up using the ‘plugins_loaded’ action or state from http://codex.wordpress.org/Plugin_API/Action_Reference: In my main plugin file I have: include_once( ‘lib/class-my-auth.php’ ); // your class file here add_action( ‘plugins_loaded’, ‘My_Auth::auto_login’ ); In lib/class-my-auth.php: <?php class My_Auth { private static $successfully_connected_Main_to_WP = false; public static function auto_login() { $username = …; // Integrate with main site to … Read more
In both wp-config.php files, change the following defines: define(‘COOKIE_DOMAIN’, ‘.test.oursite.com’); define(‘COOKIEHASH’, md5(‘test.oursite.com’)); to: define(‘COOKIE_DOMAIN’, ‘.oursite.com’); define(‘COOKIEHASH’, md5(‘oursite.com’)); Go to test.oursite.com/wp-admin/ and login as an administrator. Go to Users -> Your Profile and click on Update Profile button. Now go to forums.oursite.com/wp-admin/. You should be logged in there. If synchronization plugins in mu-plugins for both sites … Read more
BuddyPress is compatible with a WordPress Multisite setup. There are several different ways to set it up. By default, BuddyPress data is stored in a networkwide way. Generally, that means that, within the network of sites, only one site is dedicated to BuddyPress features/content – you might think of this as the “community” site within … Read more
I’m currently working on a plugin to do this on a large scale, since I have multiple sites that I want to sync; but I don’t mind sharing the info with you. I understood [from what you said] that the user’s credentials have already been verified on site2 – so there’s no need to use … Read more
Create Session with JWT
Don’t need no cookies. WordPress automatically bypasses it for you if you pass an user (the one you need to login) object, fire this function on init (I think): $user_to_login = get_user_by( ‘id’, 1 ); // Check if user exists if( $user_to_login ) { wp_set_auth_cookie( $user_to_login->ID, False ); /** * Fire up the login process. … Read more
How to customize wp_signon()
I had a very similar situation, but I am using it for a family member with an illness to provide updates to the wider friends and family without relying on the primary caretaker to give these updates and a blog seemed the best way. We also wanted to allow people to add comments to the … Read more
Let your blogs share the same user table. In your blogs wp-config.php files add: define(‘CUSTOM_USER_TABLE’, $table_prefix . ‘my_users’); define(‘CUSTOM_USER_META_TABLE’, $table_prefix . ‘my_usermeta’); Important note from Codex: Please note that permissions in the user_meta tables are stored with the table prefix of the site. So in the CUSTOM_USER_META_TABLE one must have entries for each site using … Read more