WPSEO_Post_Type::is_post_type_indexable()
Checks if the request post type is public and indexable.
Метод класса: WPSEO_Post_Type{}
Хуков нет.
Возвращает
true|false
. True when post type is set to index.
Использование
$result = WPSEO_Post_Type::is_post_type_indexable( $post_type_name );
- $post_type_name(строка) (обязательный)
- The name of the post type to lookup.
Код WPSEO_Post_Type::is_post_type_indexable() WPSEO Post Type::is post type indexable Yoast 24.9
public static function is_post_type_indexable( $post_type_name ) { return YoastSEO()->helpers->post_type->is_indexable( $post_type_name ); }