Yoast\WP\SEO\Exceptions\Indexable
Author_Not_Built_Exception::author_not_built_because_of_filter()
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() Author Not Built Exception::author not built because of filter Yoast 24.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.' ); }