How change menu for each user in plugin?

Create a menu for each type of user in Dashboard >> Appearence >> Menus >> create a new menu (eg http://example.com/wp-admin/nav-menus.php?action=edit&menu=0) Then add a function to your theme’s functions.php to switch the menus. Something like as follows: add_filter(‘wp_nav_menu_args’, ‘wp_nav_menu_args_filter’); function wp_nav_menu_args_filter($args = array()) { if (is_user_logged_in) { // Menu for Logged In Users $args[‘menu’] = … Read more

How to add plugin activity in the menus?

Go to your dashboard->appearence->menus Select the menu where you want your link for this plugin Now create a custom link from the custom Links box at left side as: enter the url as:http://www.your_site_name/answers/ and enter the label as anything you want to display in your menu add this custom menu in any postion in your … Read more