WPSEO_Tracking::register_hooks()
Registers all hooks to WordPress.
Метод класса: WPSEO_Tracking{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WPSEO_Tracking = new WPSEO_Tracking(); $WPSEO_Tracking->register_hooks();
Код WPSEO_Tracking::register_hooks() WPSEO Tracking::register hooks Yoast 23.6
public function register_hooks() { if ( ! $this->tracking_enabled() ) { return; } // Send tracking data on `admin_init`. add_action( 'admin_init', [ $this, 'send' ], 1 ); // Add an action hook that will be triggered at the specified time by `wp_schedule_single_event()`. add_action( 'wpseo_send_tracking_data_after_core_update', [ $this, 'send' ] ); // Call `wp_schedule_single_event()` after a WordPress core update. add_action( 'upgrader_process_complete', [ $this, 'schedule_tracking_data_sending' ], 10, 2 ); }