Single sign on between two wordpress website

Let’s assume that we have two websites, mentioned in your question – abc.com, xyz.abc.com, and their table prefixes are – ab_, xy_. Requirements Both websites must be installed within the same domain. Both websites must share the same database using different table prefixes. Both websites must share user tables ( ex. ab_users, ab_usermeta ). Websites’ … Read more

Bypassing wp_signon with a cookie that I have

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

Single sign on between two wordpress website

Let’s assume that we have two websites, mentioned in your question – abc.com, xyz.abc.com, and their table prefixes are – ab_, xy_. Requirements Both websites must be installed within the same domain. Both websites must share the same database using different table prefixes. Both websites must share user tables ( ex. ab_users, ab_usermeta ). Websites’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)