WP_Post_Type::unregister_meta_boxes()publicWP 4.6.0

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

Метод класса: WP_Post_Type{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_Post_Type = new WP_Post_Type();
$WP_Post_Type->unregister_meta_boxes();

Список изменений

С версии 4.6.0 Введена.

Код WP_Post_Type::unregister_meta_boxes() WP 6.5.2

public function unregister_meta_boxes() {
	if ( $this->register_meta_box_cb ) {
		remove_action( 'add_meta_boxes_' . $this->name, $this->register_meta_box_cb, 10 );
	}
}