Yoast\WP\SEO\Builders

Indexable_Builder::build_for_home_page()publicYoast 1.0

Creates an indexable for the homepage.

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

Хуков нет.

Возвращает

Indexable. The home page indexable.

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

$Indexable_Builder = new Indexable_Builder();
$Indexable_Builder->build_for_home_page( $indexable );
$indexable(Indexable|true|false)
An existing indexable to overwrite.
По умолчанию: false

Код Indexable_Builder::build_for_home_page() Yoast 19.10

public function build_for_home_page( $indexable = false ) {
	return $this->build( $indexable, [ 'object_type' => 'home-page' ] );
}