• Resolved MI

    (@mariukas)


    Hey,

    Thanks for really great plugin. I need to retrieve user profile info (like address, surname, etc.) on other page. How can i do it?

    I believe I should use something like <?php echo $auth->get(‘user_name’); ?> , but of course it will not work on other page without including something more.

    Thanks

    https://www.ads-software.com/plugins/simple-membership/

Viewing 1 replies (of 1 total)
  • Thread Starter MI

    (@mariukas)

    Just found out it on your forum ??

    Just need to add:

    $auth = BAuth::get_instance();

    So the whole code to retrieve f.e. first name would look like this:

    $auth = BAuth::get_instance();
    $name= $auth->get('first_name');
    echo $name;

Viewing 1 replies (of 1 total)
  • The topic ‘Retrieve user profile info on other page’ is closed to new replies.