Automattic\WooCommerce\Internal\CLI\Migrator\Core

MigratorTracker::init_hooksprivateWC 1.0

Initialize WordPress hooks.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->init_hooks(): void;

Код MigratorTracker::init_hooks() WC 10.8.1

private function init_hooks(): void {
	add_action( 'wc_migrator_session_started', array( $this, 'on_session_started' ), 10, 2 );
	add_action( 'wc_migrator_batch_processed', array( $this, 'on_batch_processed' ), 10, 3 );
	add_action( 'wc_migrator_session_completed', array( $this, 'on_session_completed' ), 10, 2 );
}