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

Yoast\WP\SEO\Integrations\Watchers

Indexable_Post_Watcher::build_indexable() public Yoast 1.0

Saves post meta.

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

Хуков нет.

Возвращает

null.

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

$Indexable_Post_Watcher = new Indexable_Post_Watcher();
$Indexable_Post_Watcher->build_indexable( $post_id );
$post_id(число) (обязательный)
Post ID.

Код Indexable_Post_Watcher::build_indexable() Yoast 15.6.2

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

	if ( ! $this->is_post_indexable( $post_id ) ) {
		return;
	}

	try {
		$indexable = $this->repository->find_by_id_and_type( $post_id, 'post', false );
		$indexable = $this->builder->build_for_id_and_type( $post_id, 'post', $indexable );

		$post = $this->post->get_post( $post_id );

		// Build links for this post.
		if ( $post && $indexable ) {
			$this->link_builder->build( $indexable, $post->post_content );
			// Save indexable to persist the updated link count.
			$indexable->save();
		}
	} catch ( Exception $exception ) {
		$this->logger->log( LogLevel::ERROR, $exception->getMessage() );
	}
}