Yoast\WP\SEO\Integrations\Watchers
Indexable_Permalink_Watcher::reset_permalinks_post_type() public Yoast 1.0
Resets the permalink for the given post type.
{} Это метод класса: Indexable_Permalink_Watcher{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Indexable_Permalink_Watcher = new Indexable_Permalink_Watcher(); $Indexable_Permalink_Watcher->reset_permalinks_post_type( $post_type );
- $post_type(строка) (обязательный)
- The post type to reset.
Код Indexable_Permalink_Watcher::reset_permalinks_post_type() Indexable Permalink Watcher::reset permalinks post type Yoast 15.7
public function reset_permalinks_post_type( $post_type ) {
$this->indexable_helper->reset_permalink_indexables( 'post', $post_type );
$this->indexable_helper->reset_permalink_indexables( 'post-type-archive', $post_type );
}