WP_Post_Type::unregister_meta_boxes
Unregisters the post type meta box if a custom callback was specified.
Method of the class: WP_Post_Type{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Post_Type = new WP_Post_Type(); $WP_Post_Type->unregister_meta_boxes();
Changelog
| Since 4.6.0 | Introduced. |
WP_Post_Type::unregister_meta_boxes() WP Post Type::unregister meta boxes code WP 6.8.3
public function unregister_meta_boxes() {
if ( $this->register_meta_box_cb ) {
remove_action( 'add_meta_boxes_' . $this->name, $this->register_meta_box_cb, 10 );
}
}