- This topic has 1 reply, 1 voice, and was last updated 12 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – code to get a page's membership levels
Tagged: membership levels
How do I get the membership levels that a page has checked?
well, I think I’ve solved my own problem. If anyone else is interested or can suggest a better way this is what I did..
$page_membership_levels = $wpdb->get_results( “SELECT page_list FROM wp_wp_eMember_membership_tbl WHERE alias='”.do_shortcode(‘[wp_eMember_user_details user_info=”user_membership_level_name”]’).”‘” );
$page_membership_levels = unserialize($page_membership_levels[0]->page_list);