Uses
Uses | Description |
---|---|
wp-includes/plugin.php: add_action() | Hooks a function on to a specific action. |
Registers the post type meta box if a custom callback was specified.
File: wp-includes/class-wp-post-type.php
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 ); } }
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_post_type/register_meta_boxes