Thanks to @Aravona I found a fix!
function give_user_manage_options() {
$role_object = get_role( '$role' );
$role_object->add_cap( 'manage_options');
}
add_action( 'admin_init', 'give_user_manage_options');
Related Posts:
- How to add menu to Dashboard that can be viewed by all users
- ‘Users’ and ‘Appearance’ have disappeared from dashboard menu [closed]
- Use wp_logout_url() in menu creation page
- In the Admin Dashboard, can I choose which sections to display?
- Is it possible to add a dynamic link in the main navigation in a child theme
- how to remove description from menu buttons?
- WP admin style not refreshing
- Menu page with three columns
- Trying to add Newline in Menu item
- Is it possible to remove the highlighted menu on Users and highlight a different menu?
- change link of menu particular tab
- List of WordPress menu item indices?
- Create custom page and custom menu
- How to handle change the appearance of ‘categories’ box on dashboard?
- wp_get_nav_menu_items() not working with slug
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- Add Class to Specific Link in Custom Menu
- How do I add a search box to the nav menu?
- How to get IDs for objects in menu branch?
- How to move parent li to end of child ul
- wp_nav_menu() loses ‘current-menu-*’ classes on single product page within category
- How is custom menu hierarchy output handled?
- How to fix strange 500 Error after Editing Menu?
- Remove ‘Menus’ from Twenty Sixteen theme Customizer
- Custom nav walker with different output depending on depth
- Override custom menu widget
- Placing widget to menu
- container_class doesn’t seem to be working
- Get menu item slug
- Walker_Nav_Menu: Items not nested correctly
- Loop through Navbar, Output Icons
- Custom Walker anchor tag not inheriting attributes
- Check what “type” a menu item is
- How to display dynamic content in start_lvl function
- Partial refresh of menu in customizer not working?
- Add custom -element to wp_nav_menu
- Disable automatig SVG tag from menu
- next_post_link() on custom menu structure
- Different fields available for different sites when when customising Menu’s
- Custom walker with hashes instead of links (one-page layout)
- Find out if a page has no parent
- wp_nav_menu() showing list in a different Position?
- Can’t include Language switch in Nav Menu
- Using website header, menu and footer on WordPress blog
- Add within the output of
- Add CSS to head depending on nav menu walker
- Can only get one of two custom menus to display
- wp_nav_menu not working [closed]
- Getting the current menu item id from specific menu
- how to disable default menu classes
- How should I build a custom menu walker for this setup?
- Adding an admin menu page showing the link twice – how to solve this?
- Dynamic_sidebar inside wp_nav_menu
- My Temptation theme is showing two of the same menu at the top. How do I remove the one that the theme comes with? Please help! [closed]
- How to align last 3 menu items to the right – WordPress main menu [closed]
- WordPress Menu Exchange On Tablet’s Orientation
- changing theme folder name breaks menus – twentyeleven
- Submenu in sidebar custom page template
- How to add a second custom menu in my sidebar when theme only supports one?
- add_filter for where statment issue
- How to hide the menu item created by the theme in WordPress admin panel?
- How to add columns to wordpress menu editor
- how to insert data in li tag of navigation
- Removing a page from the header menu
- WordPress Login/Logout Single Menu Only
- wp_nav_menu does not take arguments?
- “Widgets” menu doesn’t appear
- WordPress always display the first menu
- If child is active add class to parent in customWalker
- 500 Internal Server Error when Trying to Save Menu [closed]
- plus sign not working in widget “Header: Nav Menu”
- Do not hyperlink menu heading
- How do I convert a custom menu wp_get_nav_menu_items into Fourth level?
- Replace the page url with a menu link?
- Need to remove the admin menu item from a be theme in wordpress
- How to add CSS class to and and id in a nav menu with code?
- Change hover to onclick on menu
- Roles see different top menu (nav menu)
- Where to place a svg chevron down in my custom walker?
- How to apply individual menu item’s “CSS Classes” to , not ?
- Product categories are mixed when creating menu
- Header lists posts instead of showing primary nav menu
- Add a menu item to the logged in users author page?
- Iterate through each menu item into a shortcode
- “Static” Child Menu with Accordian
- Image menu on responsive WordPress
- Set a different home link in nav menu
- Remove link from Page name in navigation bar
- Auto Filled Custom Menus for Custom Post Types?
- Setting up menus before making a template live
- Adding Pages to Menus – No Page Hierarchy in Backend [duplicate]
- Is it possible to add a superscript trademark symbol to a menu?
- Creating a Horizontal menu
- I want my homepage navbar to have different styling to the rest of my site, how can I do this?
- Problems with draft website pages
- register_nav_menus and wp_nav_menu issue, not displaying independent menus
- Convert a custom bootsrap based menu to wordpress nav walker
- How do I get the menu items based on name or ID?
- Menu problem : when add wordpress element in menu it convert into empty custom link
- Problems with the navigation menu