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

Yoast\WP\SEO\Helpers

Indexable_Helper::reset_permalink_indexables() public Yoast 1.0

Resets the permalinks of the indexables.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$Indexable_Helper = new Indexable_Helper();
$Indexable_Helper->reset_permalink_indexables( $type, $subtype, $reason );
$type(строка)
The type of the indexable.
По умолчанию: null
$subtype(null/строка)
The subtype. Can be null.
По умолчанию: null
$reason(строка)
The reason that the permalink has been changed.
По умолчанию: Indexing_Reasons::REASON_PERMALINK_SETTINGS

Код Indexable_Helper::reset_permalink_indexables() Yoast 15.6.2

<?php
public function reset_permalink_indexables( $type = null, $subtype = null, $reason = Indexing_Reasons::REASON_PERMALINK_SETTINGS ) {
	$result = $this->repository->reset_permalink( $type, $subtype );

	$this->indexing_helper->set_reason( $reason );

	if ( $result !== false && $result > 0 ) {
		\delete_transient( Indexable_Post_Indexation_Action::TRANSIENT_CACHE_KEY );
		\delete_transient( Indexable_Post_Type_Archive_Indexation_Action::TRANSIENT_CACHE_KEY );
		\delete_transient( Indexable_Term_Indexation_Action::TRANSIENT_CACHE_KEY );
	}
}