Yoast\WP\SEO\Exceptions\Indexable

Not_Built_Exception::invalid_object_id()public staticYoast 1.0

Creates an exception that should be thrown when an indexable was not built because of an invalid object id.

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

Хуков нет.

Возвращает

Not_Built_Exception. The exception.

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

$result = Not_Built_Exception::invalid_object_id( $object_id );
$object_id(int) (обязательный)
The invalid object id.

Код Not_Built_Exception::invalid_object_id() Yoast 24.0

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."
	);
}