WPSEO_Metabox::current_post_type_has_taxonomies() private Yoast 1.0
Determines whether or not the current post type has registered taxonomies.
{} Это метод класса: WPSEO_Metabox{}
Хуков нет.
Возвращает
true/false
. Whether the current post type has taxonomies.
Использование
// private - только в коде основоного (родительского) класса $result = $this->current_post_type_has_taxonomies();
Код WPSEO_Metabox::current_post_type_has_taxonomies() WPSEO Metabox::current post type has taxonomies Yoast 16.1.1
private function current_post_type_has_taxonomies() {
$post_taxonomies = get_object_taxonomies( get_post_type() );
return ! empty( $post_taxonomies );
}