Yoast\WP\SEO\Exceptions\Indexable
Not_Built_Exception{}└─ Indexable_Exception
Class Not_Built_Exception
Хуков нет.
Использование
$Not_Built_Exception = new Not_Built_Exception(); // use class methods
Методы
- public static invalid_object_id( $object_id )
Код Not_Built_Exception{} Not Built Exception{} Yoast 27.4
class Not_Built_Exception extends Indexable_Exception {
/**
* Creates an exception that should be thrown when an indexable
* was not built because of an invalid object id.
*
* @param int $object_id The invalid object id.
*
* @return Not_Built_Exception The exception.
*/
public static function invalid_object_id( $object_id ) {
return new self(
"Indexable was not built because it had an invalid object id of $object_id.",
);
}
}