Yoast\WP\SEO\Exceptions\Indexable

Term_Not_Built_Exception::because_not_indexable()public staticYoast 1.0

Throws an exception if the term is not indexable.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код Term_Not_Built_Exception::because_not_indexable() Yoast 20.0

public static function because_not_indexable( $term_id ) {
	/* translators: %s: expands to the term id */
	return new Term_Not_Built_Exception( \sprintf( \__( 'The term %s could not be built because it\'s not indexable.', 'wordpress-seo' ), $term_id ) );
}