Yoast_Dynamic_Rewrites::register_hooks()publicYoast 1.0

Registers all necessary hooks with WordPress.

Метод класса: Yoast_Dynamic_Rewrites{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$Yoast_Dynamic_Rewrites = new Yoast_Dynamic_Rewrites();
$Yoast_Dynamic_Rewrites->register_hooks();

Код Yoast_Dynamic_Rewrites::register_hooks() Yoast 24.9

public function register_hooks() {
	add_action( 'init', [ $this, 'trigger_dynamic_rewrite_rules_hook' ], 1 );
	add_filter( 'option_rewrite_rules', [ $this, 'filter_rewrite_rules_option' ] );
	add_filter( 'sanitize_option_rewrite_rules', [ $this, 'sanitize_rewrite_rules_option' ] );
}