Expand Ocean Extra Metabox Capabilities

This is a Developer Level doc.

If you're unfamiliar with PHP and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.

/**
 * Expand Ocean Extra OceanWP Settings Metabox Capabilities
 * 
 * By default, WordPress will allow access to OceanWP Settings (Metabox) to administrator roles only.
 * See WordPress Roles and Capabilities for more information.
 */
function expand_oembx_capabilities( $role ) {

	// $role can also be an array() of WordPress capabilities.
	$role = 'edit_posts';

	return $role;
}
add_filter( 'ocean_main_metaboxes_capabilities', 'expand_oembx_capabilities', 20 );

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.