WC_Importer_Tracking::track_product_importer()publicWC 1.0

Route product importer action to the right callback.

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

Хуков нет.

Возвращает

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

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

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

Код WC_Importer_Tracking::track_product_importer() WC 8.7.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
}