Yoast\WP\SEO\Integrations\Watchers
Indexable_Permalink_Watcher::register_hooks() public Yoast 1.0
Registers the hooks.
{} Это метод класса: Indexable_Permalink_Watcher{}
Хуков нет.
Возвращает
null.
Использование
$Indexable_Permalink_Watcher = new Indexable_Permalink_Watcher(); $Indexable_Permalink_Watcher->register_hooks();
Код Indexable_Permalink_Watcher::register_hooks() Indexable Permalink Watcher::register hooks Yoast 15.6.2
public function register_hooks() {
\add_action( 'update_option_permalink_structure', [ $this, 'reset_permalinks' ] );
\add_action( 'update_option_category_base', [ $this, 'reset_permalinks_term' ], 10, 3 );
\add_action( 'update_option_tag_base', [ $this, 'reset_permalinks_term' ], 10, 3 );
\add_action( 'wpseo_permalink_structure_check', [ $this, 'force_reset_permalinks' ] );
\add_action( 'wpseo_deactivate', [ $this, 'unschedule_cron' ] );
}