Yoast\WP\SEO\Repositories

Indexable_Repository::upgrade_indexable()publicYoast 1.0

Checks if an Indexable is outdated, and rebuilds it when necessary.

Метод класса: Indexable_Repository{}

Хуков нет.

Возвращает

Indexable. The indexable.

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

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

Код Indexable_Repository::upgrade_indexable() Yoast 19.11

public function upgrade_indexable( $indexable ) {
	if ( $this->version_manager->indexable_needs_upgrade( $indexable ) ) {
		$indexable = $this->builder->build( $indexable );
	}
	return $indexable;
}