Function to get the current user logged in and the email?

Home Forums Legacy Support Support queries How-to & Troubleshooting Function to get the current user logged in and the email?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #312570
    wyclops_351
    Participant
    I'm trying to find out if there is a function to return the current user logged in and the email?
    #312622
    Diana
    Participant
    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/
    #312864
    wyclops_351
    Participant
    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.
    #312869
    wyclops_351
    Participant
    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.
    #312986
    Diana
    Participant
    Can you please share a screenshot? about which template you are talking about?
    #313164
    wyclops_351
    Participant
    This reply has been marked as private.
    #313323
    Diana
    Participant
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Function to get the current user logged in and the email?’ is closed to new replies.