Yoast\WP\SEO\Exceptions\Indexable

Author_Not_Built_Exception::author_archives_are_disabled()public staticYoast 1.0

Named constructor for creating an Author_Not_Built_Exception when author archives are disabled.

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

Хуков нет.

Возвращает

Author_Not_Built_Exception. The exception.

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

$result = Author_Not_Built_Exception::author_archives_are_disabled( $user_id );
$user_id(строка) (обязательный)
The user id.

Код Author_Not_Built_Exception::author_archives_are_disabled() Yoast 22.3

public static function author_archives_are_disabled( $user_id ) {
	return new self(
		'Indexable for author with id ' . $user_id . ' is not being built, since author archives are disabled.'
	);
}