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

Yoast\WP\SEO\Integrations\Watchers

Indexable_Term_Watcher::build_indexable() public Yoast 1.0

Update the taxonomy meta data on save.

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

Хуков нет.

Возвращает

null.

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

$Indexable_Term_Watcher = new Indexable_Term_Watcher();
$Indexable_Term_Watcher->build_indexable( $term_id );
$term_id(число) (обязательный)
ID of the term to save data for.

Код Indexable_Term_Watcher::build_indexable() Yoast 15.6.2

<?php
public function build_indexable( $term_id ) {
	// Bail if this is a multisite installation and the site has been switched.
	if ( $this->site->is_multisite_and_switched() ) {
		return;
	}

	$term = \get_term( $term_id );

	if ( $term === null || \is_wp_error( $term ) ) {
		return;
	}

	if ( ! \is_taxonomy_viewable( $term->taxonomy ) ) {
		return;
	}

	$indexable = $this->repository->find_by_id_and_type( $term_id, 'term', false );

	// If we haven't found an existing indexable, create it. Otherwise update it.
	$indexable = $this->builder->build_for_id_and_type( $term_id, 'term', $indexable );

	// Update links.
	$this->link_builder->build( $indexable, $term->description );

	$indexable->save();
}