Yoast\WP\SEO\Exceptions\Indexable
Invalid_Term_Exception::__construct() public Yoast 1.0
Exception that can be thrown whenever a term is considered invalid by WordPress within the context of the indexables.
{} Это метод класса: Invalid_Term_Exception{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Invalid_Term_Exception = new Invalid_Term_Exception(); $Invalid_Term_Exception->__construct( $reason );
- $reason(строка) (обязательный)
- The reason given by WordPress why the term is invalid.
Код Invalid_Term_Exception::__construct() Invalid Term Exception:: construct Yoast 15.6.2
public function __construct( $reason ) {
parent::__construct(
\sprintf(
/* translators: %s is the reason given by WordPress. */
\esc_html__( 'The term is considered invalid. The following reason was given by WordPress: %s', 'wordpress-seo' ),
$reason
)
);
}