Yoast\WP\SEO\Integrations\Watchers
Indexable_Ancestor_Watcher::update_hierarchy_and_permalink() protected Yoast 1.0
Updates the indexable hierarchy and indexable permalink.
{} Это метод класса: Indexable_Ancestor_Watcher{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->update_hierarchy_and_permalink( $indexable );
- $indexable(Indexable) (обязательный)
- The indexable to update the hierarchy and permalink for.
Код Indexable_Ancestor_Watcher::update_hierarchy_and_permalink() Indexable Ancestor Watcher::update hierarchy and permalink Yoast 15.7
protected function update_hierarchy_and_permalink( $indexable ) {
$this->indexable_hierarchy_builder->build( $indexable );
$indexable->permalink = $this->permalink_helper->get_permalink_for_indexable( $indexable );
$indexable->save();
}