WP_Post_Type::unregister_meta_boxes

Advertisement

Summery Summery

Unregisters the post type meta box if a custom callback was specified.

Syntax Syntax

WP_Post_Type::unregister_meta_boxes()

Source Source

File: wp-includes/class-wp-post-type.php

	 * @since 4.6.0
	 */
	public function unregister_meta_boxes() {
		if ( $this->register_meta_box_cb ) {
			remove_action( 'add_meta_boxes_' . $this->name, $this->register_meta_box_cb, 10 );

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.