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

Name of eMember array for logged-in user?

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › Name of eMember array for logged-in user?

Tagged: data, member data, members

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 12 months ago by admin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 18, 2015 at 10:45 am #12653
    dnuttall
    Member

    Is there a way to see what variables are currently assigned to a logged-in eMember user from PHP?

    Perhaps something like:

    <START_PseudoCode>

    <?php

    include_once(“wp-config.php”);

    $MyUserInfo = getEmemberUserInfo();

    print “

    ";
    print_r($MyUserInfo);
    print "

    “;

    ?>

    </END_PseudoCode>

    Dave

    May 18, 2015 at 12:06 pm #70083
    wzp
    Moderator

    The following posts will help you:

    How to Retrieve and Show Specific Details of the Logged-in Member

    https://support.tipsandtricks-hq.com/forums/topic/how-to-retrieve-and-show-details-of-a-specific-member

    May 20, 2015 at 1:26 pm #70084
    dnuttall
    Member

    I have tried several snippets based on PHP examples in the first of the two posts mentioned (above), but I’m obviously missing something important because it always reports “not logged in”.

    My best effort is as follows:

    <?php

    include_once(“wp-config.php”);

    global $auth;

    $field_name = ‘user_name’;

    $value = wp_eMember_get_user_details($field_name);

    echo ‘Your username is: ‘ . $value ;

    ?>

    TIA.

    Dave

    May 21, 2015 at 1:19 am #70085
    admin
    Keymaster

    How have you structured this script? Is is part of your WordPress environment or is it just a standalone PHP script? You can’t call functions from the WordPress environment unless is code is part of a plugin or theme’s functions.php file.

  • 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