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

If exists a shortcode to show an array of all the membership levels ID of a user

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › If exists a shortcode to show an array of all the membership levels ID of a user

  • This topic has 8 replies, 3 voices, and was last updated 6 years, 5 months ago by vinay samant.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • October 16, 2018 at 12:53 pm #15155
    3ddsa
    Spectator

    Hi,

    I have a site that uses multiple membership levels.

    I would need to know if exists or is possible to have a shortcode that shows an array of all the membership levels IDs of a user.

    I would need to use it with another plugin to make a conditional check and display content, as with section protection of WP eMember I can not get the desired results.

    I’m not a php expert, if possible to have a suggestion on how to proceed, thank you.

    October 16, 2018 at 7:17 pm #78670
    wzp
    Moderator

    The only way to do this is with the following PHP code:

    <br />
    $all_level_ids = emember_get_all_level_ids_of_a_member($member_id);<br />

    This causes each element of the array $all_level_ids to contain the membership level ID that $member_id belongs to.

    October 27, 2018 at 8:01 pm #78671
    vinay samant
    Member

    what plugin are you using to show specific posts as per membership? and how to use above code in this plugin?

    October 28, 2018 at 12:24 pm #78672
    wzp
    Moderator

    Vinay, please provide more context, regarding your question.

    October 30, 2018 at 3:20 am #78673
    vinay samant
    Member

    sorry admin,

    the question was for “3ddsa” who said “I would need to use it with another plugin to make a conditional check and display content” …

    i also need similar provision where user will see only posts from the subscribed categories in his user-area. i was wondering if such thing available. I m using “Content Views” plugin, but how to pass registered categories to “CV” to show only those content..

    October 31, 2018 at 1:40 pm #78674
    vinay samant
    Member

    how to get list of categories to which membership levels of user are associated with? or accessible to?

    means, if my membership levels are 1,7 and categories permitted in those levels are 22,31 & 16, how can i know it??

    November 20, 2018 at 5:43 am #78675
    vinay samant
    Member

    hello??

    November 20, 2018 at 2:14 pm #78676
    wzp
    Moderator

    …the question was for “3ddsa” who said…

    And that’s why none of us has responded.

    how to get list of categories to which membership levels of user are associated with? or accessible to?

    Please review this thread, and see if it helps:

    https://support.tipsandtricks-hq.com/forums/topic/emember-boolean-function-if-user-can-access-category

    December 4, 2018 at 6:09 am #78677
    vinay samant
    Member

    sorry for misunderstanding..

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 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