Skip to main content
1 vote
Accepted

How can I access user information on a subdomain?

Found two solutions: 1) global $current_user; $wp_get_current_user_id = $current_user->ID; $wp_get_current_user_id = apply_filters( 'determine_current_user', false ); Which then in helloworld.php ...
Kermit's user avatar
  • 155
1 vote
Accepted

Conditional Content Linked to Cookie Value Only Shows on 2nd Page Load

Since you are relying on the URL parameter to set cookies, why not prioritize it over the cookie for the first page load? At your second code block, changing the line $plan_cookie to this might help. $...
Abhik's user avatar
  • 2,911

Only top scored, non community-wiki answers of a minimum length are eligible