Yoast\WP\SEO\Exceptions\Indexable

Post_Not_Built_Exception::because_not_indexable()public staticYoast 1.0

Throws an exception if the post is not indexable.

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

Хуков нет.

Возвращает

Post_Not_Built_Exception.

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

$result = Post_Not_Built_Exception::because_not_indexable( $post_id );
$post_id(int) (обязательный)
ID of the post.

Код Post_Not_Built_Exception::because_not_indexable() Yoast 22.4

public static function because_not_indexable( $post_id ) {
	/* translators: %s: expands to the post id */
	return new self( \sprintf( \__( 'The post %s could not be indexed because it does not meet indexing requirements.', 'wordpress-seo' ), $post_id ) );
}