Author_Not_Built_Exception::author_not_built_because_of_filter()public staticYoast 1.0

Named constructor for creating an Author_Not_Build_Exception when an author is excluded because of the wpseo_should_build_and_save_user_indexable

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

Хуков нет.


Author_Not_Built_Exception. The exception.


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

Код Author_Not_Built_Exception::author_not_built_because_of_filter() Yoast 22.4

public static function author_not_built_because_of_filter( $user_id ) {
	return new self(
		'Indexable for author with id ' . $user_id . ' is not being built, since it is excluded because of the \'wpseo_should_build_and_save_user_indexable\' filter.'