Yoast\WP\SEO\Exceptions\Indexable
Term_Not_Built_Exception::because_not_indexable()
Throws an exception if the term is not indexable.
Метод класса: Term_Not_Built_Exception{}
Хуков нет.
Возвращает
Term_Not_Built_Exception
.
Использование
$result = Term_Not_Built_Exception::because_not_indexable( $term_id );
- $term_id(int) (обязательный)
- ID of the term.
Код Term_Not_Built_Exception::because_not_indexable() Term Not Built Exception::because not indexable Yoast 22.4
public static function because_not_indexable( $term_id ) { /* translators: %s: expands to the term id */ return new self( \sprintf( \__( 'The term %s could not be built because it\'s not indexable.', 'wordpress-seo' ), $term_id ) ); }