Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

How to get user data and paste it in input value

Simple Membership Plugin › Forums › Simple Membership Plugin › How to get user data and paste it in input value

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by mbrsolution.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 3, 2016 at 3:02 pm #6197
    dimabuko
    Participant

    Hello again!

    There is great plugin — https://simple-membership-plugin.com/simple-membership-addon-show-member-info/. With it it’s possible to display user data (for example — e-mail).

    But it’s impossible to paste shortcode in <input> value=””. I need smth like this:
    <input type=”hidden” name=”email” value=”[swpm_show_member_info column=”email”]” >

    It’s impossible as I know because shortcode wouldn’t be rendered inside value.

    But how to paste these data to value?

    I also found article about getting user data that way:

    <?php
    if(SwpmMemberUtils::is_member_logged_in()) {
    $auth = SwpmAuth::get_instance();
    $expiry_date = $auth->get_expire_date();
    echo “Expiry date: “.$expiry_date;
    }
    else{
    echo “You are not logged-in as a member”;
    }
    ?>

    If someone could write me how to get username, e-mail, first and last names, phone that way it would also help me.

    April 4, 2016 at 9:30 am #6225
    dimabuko
    Participant

    I found the way to do it. It wasn’t easy way but it works.
    https://wordpress.org/support/topic/shortcodes-not-working-in-input-element-after-update-to-423

    April 5, 2016 at 12:26 am #6236
    mbrsolution
    Moderator

    Hi, thank you for sharing. I am sure someone wanting to achieve the same as you, will find your link helpful.

    Regards

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

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy