Yoast\WP\SEO\Exceptions\Indexable
Post_Type_Not_Built_Exception::because_not_indexable()
Throws an exception if the post is not indexable.
Метод класса: Post_Type_Not_Built_Exception{}
Хуков нет.
Возвращает
Post_Type_Not_Built_Exception
.
Использование
$result = Post_Type_Not_Built_Exception::because_not_indexable( $post_type );
- $post_type(строка) (обязательный)
- The post type.
Код Post_Type_Not_Built_Exception::because_not_indexable() Post Type Not Built Exception::because not indexable Yoast 24.0
public static function because_not_indexable( $post_type ) { /* translators: %s: expands to the post type */ return new self( \sprintf( \__( 'The post type %s could not be indexed because it does not meet indexing requirements.', 'wordpress-seo' ), $post_type ) ); }