WP_Post_Type::register_meta_boxes()
Registers the post type meta box if a custom callback was specified.
{} It's a method of the class: WP_Post_Type{}
No Hooks.
Return
null
. Nothing.
Usage
$WP_Post_Type = new WP_Post_Type(); $WP_Post_Type->register_meta_boxes();
Changelog
Since 4.6.0 | Introduced. |
Code of WP_Post_Type::register_meta_boxes() WP Post Type::register meta boxes WP 6.0
public function register_meta_boxes() { if ( $this->register_meta_box_cb ) { add_action( 'add_meta_boxes_' . $this->name, $this->register_meta_box_cb, 10, 1 ); } }