WP_Post_Type::unregister_meta_boxes() WordPress Method
The WP_Post_Type::unregister_meta_boxes() function can be used to remove any registered meta boxes for a given post type. This function is useful for removing unwanted meta boxes, or for reordering the meta boxes that are displayed.
WP_Post_Type::unregister_meta_boxes() #
Unregisters the post type meta box if a custom callback was specified.
Source
File: wp-includes/class-wp-post-type.php
public function unregister_meta_boxes() {
if ( $this->register_meta_box_cb ) {
remove_action( 'add_meta_boxes_' . $this->name, $this->register_meta_box_cb, 10 );
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |