WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
класс не описан

Yoast\WP\SEO\Exceptions\Indexable

Invalid_Term_Exception{} Yoast 1.0

Exception that can be thrown whenever a term is considered invalid by WordPress within the context of the indexables.

Хуков нет.

Возвращает

null. Ничего.

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

$Invalid_Term_Exception = new Invalid_Term_Exception();
// use class methods

Методы

  1. __construct( $reason )

Код Invalid_Term_Exception{} Yoast 16.8

<?php
class Invalid_Term_Exception extends Source_Exception {

	/**
	 * Exception that can be thrown whenever a term is considered invalid by WordPress
	 * within the context of the indexables.
	 *
	 * @param string $reason The reason given by WordPress why the term is invalid.
	 */
	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
			)
		);
	}
}