I'm trying to find out if there is a function to return the current user logged in and the email?
Check this wordpress function : is_user_logged_in()
and check this for fetching email id:
https://developer.wordpress.org/reference/functions/wp_get_current_user/
We've tried that one and it just returns false.
Any WP functions like is_user_logged_in or get_current_user_id etc are all returning false.
Additionally, the "Member Access Only" template displays "This Page is only accessible to Members" whether the application is logged in or not. This is with a user authenticated with the Google login method.
Can you please share a screenshot? about which template you are talking about?
This reply has been marked as private.
This reply has been marked as private.