You can remove meta boxes with the remove_meta_box
function:
function wpse50430_remove_meta_boxes() {
// make sure we're on an admin screen and `post` is set
if( !is_admin() && !isset( $_GET['post'] ) )
return;
if( $_GET['post'] == 99 ): // editing page ID 99
remove_meta_box( 'pageparentdiv', 'page', 'normal' );
endif;
}
add_action( 'admin_menu', 'wpse50430_remove_meta_boxes' );
To remove meta boxes added by plugins, you have to find the handle ID. If you use Chrome’s developer tools, you can right-click the meta box and look for the ID of the element with class postbox
.
Related Posts:
- Inserting data into MagicFields using mysql queries
- How to enable custom fields for pages (if not a bad practice)?
- Add a Jquery Datepicker to custom field in post edit
- How can I avoid re-inventing the Custom Fields wheel in my Plugin’s Metabox?
- Custom per-page sidebar widgets .. possible?
- Does wordpress have something like content-type?
- How to add new custom page or post blocks?
- Order Posts by Closest Numeric Values
- How to get and edit custom fields if in Quick Edit
- How to update serialized data in the user meta data
- Unable to save datetime custom meta field using update_post_meta() function
- Guest Author – How can I use custom fields to create guest author link?
- Create additional short URL with custom field and 301 redirect
- Create custom field on post draft or publish?
- enabling custom fields in admin?
- get_post_meta fields don’t show up on posts page
- Using custom fields in a filter hook
- Function to change meta value in database for each post
- Get aggregate list of all custom fields for entire blog
- How to Identify the Source of a Custom Field?
- Include woocommerce custom field value in front-end search result
- WP_Meta_Query causing long-running MySQL queries
- How to validate custom field on lost password form before the user id field?
- MySQL Query that looks for post with Custom Field, then changes Category
- Woocommerce: Custom fields and email shortcodes, ec_custom_field
- Tweak Meta for Post to work it for Pages also
- How to save multiple options from a dropdown in user profile
- How to display multiple images in custom field
- How to show a gloabl message on a user profile page (in back end)?
- Create Pop-Up Box with Custom Field Content Inside the Loop
- Adding an editable field to template?
- Transferring author information from a custom field to a proper author
- How to select posts from multiple categories and metavalues?
- adding extra wordpress user info from registration form
- Custom Meta Box (SELECT) Not Saving
- jQuery – Automatic event trigger does not **really** check my form
- Display URL in a Custom Field
- Linking Custom Fields to Database Records
- Turn raw url into clickable links
- Stop sending email everytime I updates my post
- Best way to store everyday post views?
- Get post ids sorted by meta_key
- Advanced Custom Fields Plugin – Unable to get URL from post_object
- Plot location on Google map using full address specified in custom field
- Display custom field value as a hyperlink
- Unable to get specific value from post meta
- pre_get_posts : only get posts by wp_usermeta value
- Display list of terms having the same custom field value
- How to display custom field in woocommerce email orders? [closed]
- Custom meta is not being saved
- Displaying Custom Field Array
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- IF Custom field value equals ZERO
- Custom Field Repeating When Using foreach
- Can I save post meta programatically without setting metaboxes?
- How to add a css class to custom field value?
- Show custom field on attachment page?
- Help setting up a sql query
- Advanced Custom fields not available yet during publish_page action
- Meta box values are displayed on Custom Fields list. Is it possible to hide them?
- Sort posts by custom field value
- WP Insert post with post_thumbnail
- Help with this custom field conditional if no field is set display nothing
- if statement display content even though no data
- How to pass custom field value to shortcode?
- custom comment_form fields not displaying
- WP_Query () using taxonomy, custom post types
- Displaying custom field meta within WP_query loop
- Order by custom date field
- Group Posts By Custom Meta Value: Date
- how to create meta key name in wp_usermeta table in database
- Display the output from Custom User Fields from a WordPress user profile on a WordPress Custom Page
- Meta field bulk editing no longer working in WP 6.0 [closed]
- Custom Field: how to save array of multiple key-values in WordPress
- get_field values for each post on home page using wp_add_inline_style
- Delete user meta but only if found in array
- Custom field in media library not saving, selected() function not adding “selected” to select list input type
- Is there a way to determine which user changed a custom field (and when)?
- Metabox/Custom fields are not saving input data
- meta_query to check all custom fields
- Show echo ready in single.php
- Save, update, get and sanitize post meta as HTML not plain
- Show Custom Taxonomy as Headline for related posts
- Custom field group on page
- Order categories by sum of custom fields
- how to modify a field’s size in a metabox : ROWS height, and scroll control?
- Saved Post Meta Array Returns as String
- display Flexible Fields from options
- Thirtieth century date for a post
- Custom field in external Javascript
- How to filter post using custom feild value in shortest and longest duration?
- Analyze uploaded images to get colour values
- Turn Current Date in Custom Field Ouput Green or Red
- added a meta box to post however when saving menu while debug on throws a warning
- How can i get the actor birthday by date?
- list pages by custom_field?
- Get custom field from page, in a post?
- Make Custom Fields Public in JSON – API
- Advenced custom fields auto fill problem
- Archive for custom fields?