Yoast\WP\SEO\Builders

Indexable_Builder::is_type_with_no_id()privateYoast 1.0

Checks if the indexable type is one that is not supposed to have object ID for.

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

Хуков нет.

Возвращает

true|false. Whether the indexable type is one that is not supposed to have object ID for.

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

// private - только в коде основоного (родительского) класса
$result = $this->is_type_with_no_id( $type );
$type(строка) (обязательный)
The type of the indexable.

Код Indexable_Builder::is_type_with_no_id() Yoast 20.4

private function is_type_with_no_id( $type ) {
	return \in_array( $type, [ 'home-page', 'date-archive', 'post-type-archive', 'system-page' ], true );
}