Yoast\WP\SEO\Builders
Indexable_Builder::build_for_home_page()
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() Indexable Builder::build for home page Yoast 24.0
public function build_for_home_page( $indexable = false ) { return $this->build( $indexable, [ 'object_type' => 'home-page' ] ); }