WP_Post_Type::unregister_taxonomies()publicWP 4.6.0

Removes the post type from all taxonomies.

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

Хуков нет.

Возвращает

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

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

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

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

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

Код WP_Post_Type::unregister_taxonomies() WP 6.5.2

public function unregister_taxonomies() {
	foreach ( get_object_taxonomies( $this->name ) as $taxonomy ) {
		unregister_taxonomy_for_object_type( $taxonomy, $this->name );
	}
}