menu items depending on the membership levelslevels
-
greetings,
I want to add menu items that will display only for specific membership levels.
example: “beginners survey” is a menu item. it will display only for the users that they are in beginners level.
using addons like if menus doesn’t gives me the levels, so I decide to use this code:
function new_menu_conditions( $conditions ) {
$conditions[] = array(
‘name’ => ‘If it is Custom Post Type archive’, // name of the condition
‘condition’ => function($item) { // callback – must return TRUE or FALSE
return is_post_type_archive();
}
);return $conditions;
}
?>this code is for the post type, I want it to be user level, I found this function:
wp_emember_is_member_logged_in(‘3’)can you please help me?
The topic ‘menu items depending on the membership levelslevels’ is closed to new replies.