Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eMember – check if member has logged on

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – check if member has logged on

Tagged: check, check if user has page access, eMember, login

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 11 months ago by admin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 4, 2012 at 10:34 am #6784
    dgmufasa
    Member

    Hello all,

    I need a way to check if a member has logged in from a .php file (not from within eMember itself). The .php file is associated with the home page of a template. So, the check needs to be able to run from header.php or from home.php or from footer.php.

    TIA

    July 4, 2012 at 10:54 am #46869
    Peter
    Member

    Hi,

    You can easily be notified when a member has logged in by using the following hook from eMember:

    do_action(‘eMember_login_complete’);

    Unfortunately an explanation of how to use WP hooks is out of the scope of this forum and I’m assuming you are a WordPress/PHP developer and you know what I’m talking about when I refer to “hook”.

    July 4, 2012 at 2:01 pm #46870
    dgmufasa
    Member

    Thanks for the response.

    I am new to WP but will follow your instructions. Does this evaluate to a “1” or “0”?

    The idea is to have one page for the “landing”. If the person has logged in, the menu will change to show Contacts, Prices, Staff, etc.

    If the person has not logged in, then there will be nothing on the menu until they do.

    Can you provide a quick example of just using this piece of code?

    TIA

    July 4, 2012 at 11:58 pm #46871
    admin
    Keymaster

    The example snippets on the following documentation might be easier for what you are after:

    http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ