You must assign admin capability to custom role.
You can assign ‘manage_options’ capability for user role plugin.
OR
Add following code in custom plugin or functions.php file of child theme, and reactive plugin/theme after code is added.
$result = add_role(
'staff',
__( 'Staff' ),
array(
'manage_options' => true
)
);
Related Posts:
- wordpress function to change post status [duplicate]
- What are some examples of well-written plugins that exemplify wordpress plugin best practices? [closed]
- Calling shortcode in wp_localize_script strips result
- What plugins are in use on wordpress.com [closed]
- WordPress plugin installation
- Get image URL from media library in input
- How could I execute my plugin just in frontend (not in backend)
- Multiple Instances sharing the same database in a development environment
- Geo Targeting articles on a WordPress site [closed]
- get_option compatible with wordpress network (multisite)?
- Create a plugin with Calendar picker
- Can wp_localize_script be used within a shortcode?
- Deactivate Plugin on Theme Switch
- Group images in media library
- Getting value from Advanced Custom Fields [closed]
- Self deactivate plugins after an action occurs
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- Good rating plugin that doesn’t depend on an external service?
- Problem with creating tables for Plugin
- AJAX in plugin wp_send_json() sending html
- Replacing a plugin function with a custom renamed function doesn’t work
- Is there a standard way to listen for an on change event of a posts featured image
- How do I network enable a plugin for a multisite install via the database?
- Homemade plugin while using Themify Ultra
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- Updated 4.3 Getting Error: Warning: call_user_func_array() expects parameter 1 to
- WordPress get_avatar function not correct working
- Make change in media library affect images in published articles
- Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?
- UpdraftPlus installed malware – scared to download or update plugins now! [closed]
- Is there any plugin which enables users to rate comments in thumbs up-down way?
- Plugin Repostitory Questions
- Get site url and updates data, then use them
- How to update a local development plugin on a separate machine
- How do I convert my WordPress website to be domain agnostic?
- Get Image Having the ID [closed]
- Show media-uploads to all users
- I want to reset user’s post meta after successfully login
- Warning: Attempt to read property “ID” on null in C:\xampp\htdocs\Nnamdi1\wp-content\plugins\elementor\core\base\document.php on line 250 [closed]
- Adding CASE in WP_Query
- why I cannot activate elementor plug in?
- How to find the following specific WordPress variables?
- Need help creating asynchronous data scraper in WordPress
- Edit plugin’s HTML output with Hooks
- Show custom taxonomy in theme
- Implementation to count page visits of unique visitors based on a cookie
- How to differently style pages that display posts of different category in WordPress?
- Social sharing plugin directing to blank page after post sharing
- How to markup wordpress site using Schema.org?
- Password Protected Directory Link Shows Maintenance Mode Page
- custom registration form [duplicate]
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- How to create a “plugin” or “block” that can manipulate WordPress DOM in frontend?
- How to rename files during upload to a random string?
- Redirecting to page on form submit – Revue plugin
- Create WordPress category dynamically
- Take Elementor For Email FIeld Check if user is registered. IF not registered then register on woocommerece
- Template selector for woocommerce product
- How to access values from your own settings page in javascript?
- WP Donation Form with custom payment API
- Visual Composer Tabs don’t work on mobile
- How to load plugin static data from cloudfront
- WP-DBManager Plugin Can’t Find Mysql Path
- Subtract Using GravityWP Count Plugin
- Block Missing from Inserter When Following Block Tutorial
- How to Replicate Elementor Licensing Model
- How do I save meta key value in the save function?
- Showing Search Engine Results in Elementor [closed]
- Real estate schema markup not showing up on Rich Results test
- qTranslate‑X is not translating all shortcodes
- How do I call an action hook into wp_ajax hook callback function
- WordPress Plugin and other pages not opening
- I want to display data last 7 days with date wise in chartjs?
- Plugin Icon does not work correctly
- Redirect a specific User role not admins automatically to view the post that they just updated
- Rewrite Rule in htaccess convert query string into slashes
- How can I view forums from different sites in a single panel? [duplicate]
- Manually update notification of plugins needing updating
- The Best Multilanguage Plugin supporting the FSE [closed]
- warning wp session
- Change social icon in twenty twenty three theme
- How to create a buddypress group automatically if a topic is created
- How to add portfolio category post count in main navigation menu?
- Convert from Portfolio post to WooCommerce products [closed]
- /wp-admin/plugins.php takes ages to load, and then 404s
- How to mirror or create a post system into a plugin page
- Problem with a shortcode generating a error [closed]
- Can’t update plugins in WordPress, system returns -1
- Per-Day booking with customer-supplied start time using Woocommerce Bookings
- WP FULL CALENDAR (NO NEXT ARTICLES DISPLAY)? [closed]
- Redux Framework slides field – How Can i add new placeholder Filed? [closed]
- Woocommerce business card flyer design [closed]
- Wp private content show me files attachments into post
- How can I make a function work only for desktops and not for mobiles?
- remover item do carrinho na página de checkout
- Changing the “OT Process” Plugin’s Default Slug of /process/
- What’s the best way to update my WordPress theme to Elementor?
- How can I make a function work differently for desktops and for mobiles?
- Why my widget is not visible in the WordPress theme Twenty Twenty-Three
- How to create specific wordpress Table