Yoast\WP\SEO\Exceptions\Indexable
Author_Not_Built_Exception::author_archives_are_disabled()
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() Author Not Built Exception::author archives are disabled Yoast 24.1
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.' ); }