Remove Post/Page Options


when I edit a post (or any other post type) in WP Admin there is an additional Metabox:

‘Post/Page Options’

How cann I remove or disable it (on all post types!)?

Thanks, :slight_smile:

Following does not work (code tried for post types ‘page’):

add_action( 'admin_menu', 'child_theme_remove_meta_boxes' );
function child_theme_remove_meta_boxes() {
	remove_meta_box( 'st_singles_metabox', 'page', 'normal' );

… even not when I try to do it with another later working hook 'do_meta_boxes’
add_action( ‘do_meta_boxes’, ‘child_theme_remove_meta_boxes’ );

Hello MercuryPop,

You can disable it in Screen Options drop-down when editing post or page, just uncheck Post/page options checkbox.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Hi Roman,

thanks for your answer.

Yes. I know this Option. Of course!
Unfortunately this is not a solution for my project.

I need a clean solution where an author/redacteur is not able to reactivate the metabox on his own. Or with other words: the metabox needs to be removed completely from WP Admin. Reason why is: the functionality behind the box needs to be removed for the project. The redacteuer should not be able to change colors, background images or others on his own.

Removing a simple metabox could be done with the code I placed in my first post very easy. It is just WP standard procdure. But something in the theme blocks it. (Maybe you changed WP standard procedures when adding the metabox in the theme … which hook do you use to place the metabox, - I did not find this in the code?)

So - all I need to know is:
Which hook do I need to call to remove the box?
Or an alternative way to overwrite the metabox settings in the child theme.

Thank you very much for help.

Kind regards,

Hi Roman,
@all who are interessted in same question,

I figured it out:

The metabox ‘st_singles_metabox’

  • comes with plugin Sydney Toolbox
  • file: plugin-directory/inc/metaboxes/singles-metabox.php
  • WP hook: ‘add_meta_boxes’

Metabox is created for post types:
‘post’, ‘page’, ‘services’, ‘employees’, ‘testimonials’, ‘projects’, 'timeline-events’
Context: ‘advanced’

Code to remove in child theme:
–> NOTE: needs to be removed separate for every post type
–> Example for post type ‘services’

add_action( 'add_meta_boxes', 'child_theme_remove_meta_boxes', 99 );
function child_theme_remove_meta_boxes() {
	remove_meta_box( 'st_singles_metabox', 'services', 'advanced' );

Refrer to WP Codex

@Norman: Once mor thanks for help :slight_smile:

Kind regards

Okay Wulf,

It’s great that you have figured it out, and thank you for sharing a solution.

Kind Regards, Roman.