WC_Importer_Tracking::track_product_importer()publicWC 1.0

Route product importer action to the right callback.

Method of the class: WC_Importer_Tracking{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Importer_Tracking = new WC_Importer_Tracking();
$WC_Importer_Tracking->track_product_importer();

WC_Importer_Tracking::track_product_importer() code WC 8.9.0

public function track_product_importer() {
	// phpcs:disable WordPress.Security.NonceVerification.Recommended
	if ( ! isset( $_REQUEST['step'] ) ) {
		return;
	}

	if ( 'import' === $_REQUEST['step'] ) {
		return $this->track_product_importer_start();
	}

	if ( 'done' === $_REQUEST['step'] ) {
		return $this->track_product_importer_complete();
	}
	// phpcs:enable
}