Reply To: Disable elements

Home Forums Support Disable elements Reply To: Disable elements

#206898
Tom
Lead Developer
Lead Developer

Hi there,

Currently the metaboxes are only viewable to users with the edit_theme_options capability: https://codex.wordpress.org/Roles_and_Capabilities#Administrator

You can change this using a filter like this:

add_filter( 'generate_metabox_capability', function() {
      return 'edit_theme_options';
} );

Just replace edit_theme_options with the capability you wish to use, listed at the URL I posted above.

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/