It looks like you can hook into the ocean_main_metabox_capabilities
filter:
It is defined in /plugins/ocean-extra/includes/metabox/metabox.php
:
$capabilities = apply_filters( 'ocean_main_metaboxes_capabilities', 'manage_options' );
In your child theme or a custom plugin, try the following (for example, in /themes/mytheme/functions.php
:
add_filter( 'ocean_main_metaboxes_capabilities', 'my_custom_metabox_role' );
/**
* Change the default role used to display the Ocean Extra metabox.
*
* @param string $role The role to use, defaults to 'manage_options' (Administrator).
* @return string
*/
function my_custom_metabox_role( $role ) {
if ( ! current_user_can( 'publish_posts' ) ) {
return $role;
}
return 'publish_posts';
}
Related Posts:
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- ‘Global’ settings page for multisite plugin
- How to add field for new site-wide option on Network Settings screen?
- Contact form 7 select box different value-text than content-text in option [closed]
- Modifying a JS file with data from plugin settings
- Publish author posts only with editor approval?
- Correct way to serialize the data of options table?
- Where should I use get_option in a plugin
- Inherit plugin settings to new site in Multisite
- How to tell if plugin has been network activated
- Is there a hook attached to general settings save?
- How to find out if option exists but is empty?
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Custom plugin settings: clicking “save changes” does not display success message
- Set a User as Author of all ‘New Posts’ posted
- Duplicate settings of master blog to slave blogs in WP multi-site installation
- Environment Specific Options Token
- Having Multiple authors for the same WordPress Plugin
- How do I extract the Alt Text from an image attachment upload via the WordPress Options Framework Plugin?
- How to develop a community feature in the dashboard for multiauthor site
- Network-Wide Plugin Settings Management
- How to create a Page alias in WordPress
- Change destination author link
- How to fetch serialized data from wordpress options
- Add custom meta box on Post page
- Don’t send notification if author comments his own post plugin help?
- Some Plugin Settings Are Kept After Removal and Reinstall of the Plugin
- Changing widget options via the functions.php when there are no hooks
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Get all options saved by another plugin
- wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs
- Is it ok to call get_option without hooks?
- Enable/Disable WP options programmatically
- Custom options page checkbox will not save, despite working with text
- Settings API – input always updates over validation
- add function to saving change on Options Pages
- WooCommerce “Save Changes” button appears inside custom settings
- clean wp_options table unused rows
- How to set CORS header?
- Prepare plugin options for multi-lingual support
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- Remove obsolete plugins artifacts from database tables
- Improving a Stackoverflow “inspired” badge system to display badges in author page
- Restore a Plugin’s Default Settings
- add action wp_head not working
- How to debug register_setting callback function
- Why is the Settings API is not saving my array of options
- Creating a plugin that will add options. Where should the options menu pages go?
- Get total number of comment of the posts written by an author
- Add get_option to jquery
- update_user_meta add value on the top on existing value
- Can’t get plugin settings page to save data
- Default Plugin Settings Not Writing to Database
- Update Option Error: Notice: Undefined index
- How do i save plugin-specific info?
- Set the active Navigation Menu from a plugin
- Serialize data for wp options
- How can I add an options page for my class based plugin?
- problems with wordpress and php version 5.3.3-1
- Why slash is removed after domain?
- Where does WordPress store plugin (enabled/disabled) status for multisite?
- How to add a default value to get_option if it’s used as a variable?
- WordPress get_option and update_option returned entered on the textbox field
- Not getting author rank when using return
- Get plugin option in another PHP file
- Create mobile navigation header with settings integration
- Image upload and other options in the same plugin settings form?
- Admin Theme customization
- How to get specific setting by settings_fields()?
- Custom post type – no layout section of Document tab, and no author choice
- Add Plugin options as subpage to Theme options page
- changes to widget settings not showing up in individual pages pages until they’re updated [closed]
- Show admin notice on incorrect value on form field
- Modifying Author Link to add Author Meta in URL
- How to remove traces from widget during uninstallation
- How to set add question capability for author role in wp pro quiz plugin
- php page not found for plugin options menu
- Automatically Assign Author to Category [closed]
- add tabs in rdp-plugin/includes/settings.php and get settings saved
- Enabling plugin failed because MySQL user do not have CREATE permissions
- wp_editor content in plugin options page
- Co-Authors Plugin Displaying Wrong Author
- options creation for plugins
- How to find an option in the database?
- homepage olderposts link showing page not found
- Building a simple “settings” plugin to change textstrings on the home page
- WP e-commerce sales-view
- My first plugin doesn’t save the data in options
- Check if post was modified by editor different than post author
- How to programmatically detect how many posts are displayed per page?
- Want to add post to user dashboard
- selecting options from another form
- How to access values from your own settings page in javascript?
- Neither update_option nor delete_option fires in deactivation hook
- wp_options Table keeps growing
- move setting data from wordpress api to codestar freamwork
- Multiple plugins settings of same developer into ONE settings page linked together
- When to store store plugin options as a single database record?
- How to fix a Wordfence scan that doesn’t finish?
- Secure way to add JS Script to WordPress filesystem