Automattic\WooCommerce\Internal\CLI\Migrator\Core
MigratorTracker::init_hooks
Initialize WordPress hooks.
Method of the class: MigratorTracker{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->init_hooks(): void;
MigratorTracker::init_hooks() MigratorTracker::init hooks code WC 10.7.0
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 );
}