Hi Kriti,
OK, so I have set up the following filter in functions.php:
<?php
function my_wp_nav_menu_args( $args = '' ) {
if( is_user_logged_in() ) {
$args['menu'] = 'member_menu';
} else {
$args['menu'] = 'main_menu';
}
return $args;
}
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
With Responsive Menu Pro deactivated and removed, that filter ensures that when a member is logged in they see the Member’s Menu and when they are not logged in they see the menu that’s available to general visitors. The appropriate menu is displayed depending on whether the visitor is logged in or not.
Since that filter works with all WordPress themes my question is whether Responsive Menu Pro references wp_nav_menu and, if it does, would that filter achieve what I need.
Cheers,
Martin.