WPSEO_Statistic_Integration::register_hooks()publicYoast 1.0

Adds hooks to clear the cache.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPSEO_Statistic_Integration::register_hooks() Yoast 19.7.1

public function register_hooks() {
	add_action( 'wp_insert_post', [ $this, 'clear_cache' ] );
	add_action( 'delete_post', [ $this, 'clear_cache' ] );
}