Yoast\WP\SEO\Exceptions\Indexable

Author_Not_Built_Exception::author_archives_are_not_indexed_for_users_without_posts()public staticYoast 1.0

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

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

Хуков нет.

Возвращает

Author_Not_Built_Exception. The exception.

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

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

Код Author_Not_Built_Exception::author_archives_are_not_indexed_for_users_without_posts() Yoast 22.4

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