WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Builders

Indexable_Home_Page_Builder::build() public Yoast 1.0

Formats the data.

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

Хуков нет.

Возвращает

Indexable. The extended indexable.

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

$Indexable_Home_Page_Builder = new Indexable_Home_Page_Builder();
$Indexable_Home_Page_Builder->build( $indexable );
$indexable(Indexable) (обязательный)
The indexable to format.

Код Indexable_Home_Page_Builder::build() Yoast 15.6.2

<?php
public function build( $indexable ) {
	$indexable->object_type      = 'home-page';
	$indexable->title            = $this->options->get( 'title-home-wpseo' );
	$indexable->breadcrumb_title = $this->options->get( 'breadcrumbs-home' );
	$indexable->permalink        = $this->url->home();
	$indexable->blog_id          = \get_current_blog_id();
	$indexable->description      = $this->options->get( 'metadesc-home-wpseo' );
	if ( empty( $indexable->description ) ) {
		$indexable->description = \get_bloginfo( 'description' );
	}

	$indexable->is_robots_noindex = \get_option( 'blog_public' ) === '0';

	$indexable->open_graph_title       = $this->options->get( 'og_frontpage_title' );
	$indexable->open_graph_image       = $this->options->get( 'og_frontpage_image' );
	$indexable->open_graph_image_id    = $this->options->get( 'og_frontpage_image_id' );
	$indexable->open_graph_description = $this->options->get( 'og_frontpage_desc' );

	// When the image or image id is set.
	if ( $indexable->open_graph_image || $indexable->open_graph_image_id ) {
		$indexable->open_graph_image_source = 'set-by-user';

		$this->set_open_graph_image_meta_data( $indexable );
	}

	return $indexable;
}