Yoast\WP\SEO\Builders

Indexable_Builder::build_for_system_page()publicYoast 1.0

Creates an indexable for a system page.

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

Хуков нет.

Возвращает

Indexable. The search result indexable.

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

$Indexable_Builder = new Indexable_Builder();
$Indexable_Builder->build_for_system_page( $page_type, $indexable );
$page_type(строка) (обязательный)
The type of system page.
$indexable(Indexable|true|false)
An existing indexable to overwrite.
По умолчанию: false

Код Indexable_Builder::build_for_system_page() Yoast 19.10

public function build_for_system_page( $page_type, $indexable = false ) {
	$defaults = [
		'object_type'     => 'system-page',
		'object_sub_type' => $page_type,
	];
	return $this->build( $indexable, $defaults );
}