Skip to main content

Home/ Wordpress/ Group items tagged nav

Rss Feed Group items tagged

Vernon Fowler

Nav Menu Roles Plugin for WordPress: Change Menus Based on User Status - 1 views

  • If you’d like to show the menu to everybody, regardless of user role (in other words, to act like a normal menu item), simply select the “By Role” option and do not check anything off the list. This will ensure that anybody visiting your site can see the link. This is also the default option when new items are added to your menus, so if you don’t want to restrict access, you don’t have to do a single thing.
Luciano Ferrer

widgets - Give Editor Access To Sidebar - WordPress Development Stack Exchange - 3 views

  •  
    "The edit_theme_options capability should allow the user to edit the sidebar as described on this page : http://codex.wordpress.org/Appearance_Widgets_SubPanel Code to add to functions.php $role = get_role('editor'); $role->add_cap('edit_theme_options'); Edit: This should work to prevent editor accessing themes or menus function custom_admin_menu() { $user = new WP_User(get_current_user_id()); if (!empty( $user->roles) && is_array($user->roles)) { foreach ($user->roles as $role) $role = $role; } if($role == "editor") { remove_submenu_page( 'themes.php', 'themes.php' ); remove_submenu_page( 'themes.php', 'nav-menus.php' ); } } add_action('admin_menu', 'custom_admin_menu'); I haven't had chance to test this, but it only removes them from the menu they may still be able to access them by typing in the URL directly."
Luciano Ferrer

WordPress › Nav Menu Roles « WordPress Plugins - 1 views

  •  
    "Hide custom menu items based on user roles This plugin lets you hide custom menu items based on user roles. So if you have a link in the menu that you only want to show to logged in users, certain types of users, or even only to logged out users, this plugin is for you."
Luciano Ferrer

Template Tags/register nav menu « WordPress Codex - 5 views

  •  
    "Registers a menu location to use with navigation menus. Even if you explicitly set theme support for navigation menus, this function must be in your theme's functions file for WordPress to recognize navigation menu support in your theme. "
1 - 4 of 4
Showing 20 items per page