there is a lot of discussion about this in wishlisMembers support forum
but the developers over there ignore it.
Any way try this:
// get the current user level from WP more important is global $user.
$user = wp_get_current_user();
// Get user levels from WishlistMembers
$levels = WLMAPI::GetUserLevels($user->ID);
//then run the check for the level you want like this:
if(in_array('silver', $levels)){
// PRINT OUT THE silver LEVEL stuff here
}
elseif (in_array('gold', $levels)){
// PRINT OUT THE gold LEVEL stuff here
}
Simple.
Related Posts:
- Membership subscription, change user role when subscription runs out
- Conditional Tag for Wishlist membership. If the user is added to two levels show particular content
- How to create a front facing user sign up, log in and profile pages like FoodGawker.Com [closed]
- How to get role of user
- How do I programmatically set default role for new users?
- What do unfiltered_html and unfiltered_upload actually filter?
- Temporary capability for current_user_can()
- How to update role capabilities
- How to loop through each user id?
- Code needed to only show users own posts in a multi-user account
- Ordering users of a specific role by last name
- Restrict Author to pick from media library, but not upload media
- how to add custom user capabilities using add_user_meta or something else?
- Remove Ability for Administrators to Delete Administrators
- Order users by custom user meta
- List total number of users that are authors
- I need to assign a role to visitors/guests
- Auto Delete Users (auto_delete_users)
- New Roles and Capabilities in WordPress
- WordPress Super Admin
- How to get all users with Author role capabilities?
- How to ‘unpublish’ or ‘hide’ posts when user role changes?
- Can’t manage to make translate_user_role() work
- Add Role inherits?
- similar to Editor can create any new user except administrator
- I am adding a new class to my body tag if the logged in user is subscriber, need help
- How to Orderby User Role?
- Prevent custom user role to add new pages
- Hide Specific User Page
- The delete_posts capability?
- Capabilites not working [closed]
- get approved users only ( ultimate member plugin )
- Create Super Admin that cant be deleted
- Customizer – Allow user editor to change website title and tagline
- Query users which have same dynamically generated roles as the current user
- change role of wordpress users when they edit profile
- Assign second role to user
- Adding Capabilities to a WordPress User Account
- Change post status based on user role
- Display User Role Next To Comment
- Allow an editor to change the author
- Parent User and Child User – relate users
- New user is assigned 2 roles: customer and superadmin
- bbPress plugin moderator roles
- how to set any post creation for pending status and let the admin approve it first?
- How to give remove role editing permission from user
- How can I allow an User to publish only 5 posts per month?
- Allowing user to edit posts based on the post status
- How to have kind of a technical writer role in wp website
- Assigning certain authors to specific editors
- How to make the Newsletter plugin visible to users with author privileges?
- WP welcome email depending on user role
- Allow user role “salesman” to view only “client” role users
- Purpose of Adding Capability to Role But Not Grant?
- Menu page with list of users
- How to check user role?
- Get and display a user’s profile info?
- How to get a users list by who created them?
- Paypal API and WordPress
- Updater user with multiple roles
- Custom user types getting html sanitized in posts
- Is there a Capability that checks as true for non-logged in users?
- Hiding custom theme functionality using capabilities
- Use PHP code to create custom user roles. Call it once?
- custom plugin not visible to some user roles
- How to write conditions based on user capabilities not on user role?
- What Capability is required to let a role RUN code in Edit Theme?
- remove_cap nothing changes
- get_post_meta with related user
- How to change a user’s role depending on date registered?
- Need to block user role from accessing bbPress all together
- Show special backend content for certain roles
- WordPress Membership Plugin Advice [closed]
- Retrieve user roles but exclude default roles
- Why can my subscribers create new posts for review?
- Custom Role read_private_posts Not Working
- Disabled delete_others_posts if post is from admin
- Create relationship between custom post types and users
- How to hide Add new Term area for taxonomy terms for specific role (Client)
- Saving user meta “member_id” based on user role
- Change logo url based on WP user role
- show the author’s role along with the name in the single.php
- Display specific post categories to specific user roles
- Role and Capabilities: How do I allow user role to access theme options without enabling ‘manage_options’?
- How to Enable registration email for a custom user role?
- How can I add the ability for a user to add/edit administrators?
- Allow signed in users (subscribers) to see their drafts
- How to sync user database with “user role editor” plugin enabled
- add user role selection to registration form [duplicate]
- Need to create admin user without capability to create user
- Assign specific editor with custom user meta “A” to all authors with custom user meta “A” and exclude all other author access
- Grant access to admin menu?
- Give editor ability to edit custom settings without access to Main Settings
- I want this code to work only for Authors AND Contributors
- registration plugin [closed]
- Disable Woocommerce checkout based on user role [closed]
- Remove_role not working, gives “Call to undefined method stdClass::remove_role()”
- Adding a new role with administrator’s capabilities
- User role can’t be set
- Order Status based on User Role