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
You are here: Home

ishop

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • August 2, 2020 at 5:45 pm in reply to: Show shortcode of another plugin if member has the required membership level #20648
    ishop
    Participant

    Hello again!
    The thing is if want to show content if a user has an active membership.
    I found out that querying the status or the account state as php if class would work (found it in another post!) and then give an output or a script in my case if the status is active, not changing something if user does not have access.
    This is the codethat works for me,maybe it helps others:

    ?php
    //Lets see if user is logged in
    if(SwpmMemberUtils::is_member_logged_in() == true){
    		// Yes. A user is logged in.
    		// Get the user's member id. We will use this later.*
    		$mId = SwpmMemberUtils::get_logged_in_members_id();
    		// Get the user's current membership account state. 
    		$auth = SwpmAuth::get_instance();
    		$account_state = $auth->get('account_state');
    if ($account_state == 'active'){
    	// execute script, show subscription contents
    echo '<script type="text/javascript">',
         'myFunction();',
         '</script>';	
    ?>	
    <?php } ?>
    <?php } ?>
    

    Thank you for your help!

    December 13, 2019 at 5:09 pm in reply to: Show specific content to a particular member via shortcode in frontend #19464
    ishop
    Participant

    Hi!
    No it doesnt. There is no option for members who are logged in, but dont have a plan. My site doesnt have a free plan. And i want everybody to have acces who is logged in. Even if they have a plan going on. So i managed it with that plugin: https://wordpress.org/plugins/user-access-shortcodes/
    It works like this [UAS_specific hint="" ids="1" admin="1"] This content can only be seen by some selected users. [2nd shortcode] [/UAS_specific]
    Actually, the member numbers of WordPress and Simple membership are different, better would be to have it in one place, so if you make a new shortcode it would also be nice!
    Thank you
    ishop

    August 18, 2019 at 12:23 am in reply to: Translation of Account Status in logged-in widget #18778
    ishop
    Participant

    Thank you very much!

    August 17, 2019 at 11:51 pm in reply to: Translation of Account Status in logged-in widget #18776
    ishop
    Participant

    on the logged in page it says:
    Eingeloggt als
    Member
    Kontostatus
    Abgelaufen
    Mitgliedschaft
    1 Jahr
    Kontoablauf
    31. March 2020

    August 17, 2019 at 11:49 pm in reply to: Translation of Account Status in logged-in widget #18775
    ishop
    Participant

    With simple membership? yes, the protect older posts and many others. but i didnt think it would have something to do with it.

    August 17, 2019 at 11:42 pm in reply to: Translation of Account Status in logged-in widget #18772
    ishop
    Participant

    For example it says “march” instead of “März”…

    August 17, 2019 at 11:42 pm in reply to: Translation of Account Status in logged-in widget #18771
    ishop
    Participant

    Hello again!
    I made a mistake, i didnt see the loggedin.php in themes folder, deleting worked. Now the statustranslation shows as it should be. But the expiration date isnt shown in german, what can I do to reach that goal?
    Thank you!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
Next Page »

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