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

Yoast\WP\SEO\Integrations\Watchers

Indexable_Permalink_Watcher::reset_permalinks() public Yoast 1.0

Resets the permalinks for everything that is related to the permalink structure.

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

Хуков нет.

Возвращает

null. Ничего.

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

$Indexable_Permalink_Watcher = new Indexable_Permalink_Watcher();
$Indexable_Permalink_Watcher->reset_permalinks();

Код Indexable_Permalink_Watcher::reset_permalinks() Yoast 16.8

<?php
public function reset_permalinks() {

	$post_types = $this->get_post_types();
	foreach ( $post_types as $post_type ) {
		$this->reset_permalinks_post_type( $post_type );
	}

	$taxonomies = $this->get_taxonomies_for_post_types( $post_types );
	foreach ( $taxonomies as $taxonomy ) {
		$this->indexable_helper->reset_permalink_indexables( 'term', $taxonomy );
	}

	$this->indexable_helper->reset_permalink_indexables( 'user' );
	$this->indexable_helper->reset_permalink_indexables( 'date-archive' );
	$this->indexable_helper->reset_permalink_indexables( 'system-page' );

	// Always update `permalink_structure` in the wpseo option.
	$this->options_helper->set( 'permalink_structure', \get_option( 'permalink_structure' ) );
}