WPSEO_Statistic_Integration::register_hooks()publicYoast 1.0

Adds hooks to clear the cache.

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

Хуков нет.

Возвращает

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

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

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

Код WPSEO_Statistic_Integration::register_hooks() Yoast 22.3

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