WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
функция не описана

Automattic\WooCommerce\Admin\Features

CustomerEffortScoreTracks::run_on_product_import() public WC 1.0

Maybe enqueue the CES survey on product import, if step is done.

{} Это метод класса: CustomerEffortScoreTracks{}

Хуков нет.

Возвращает

null. Ничего.

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

$CustomerEffortScoreTracks = new CustomerEffortScoreTracks();
$CustomerEffortScoreTracks->run_on_product_import();

Код CustomerEffortScoreTracks::run_on_product_import() WC 5.5.2

<?php
public function run_on_product_import() {
	// We're only interested in when the importer completes.
	if ( empty( $_GET['step'] ) || 'done' !== $_GET['step'] ) { // phpcs:ignore CSRF ok.
		return;
	}

	if ( $this->has_been_shown( self::IMPORT_PRODUCTS_ACTION_NAME ) ) {
		return;
	}

	$this->enqueue_to_ces_tracks(
		array(
			'action'         => self::IMPORT_PRODUCTS_ACTION_NAME,
			'label'          => __(
				'How easy was it to import products?',
				'woocommerce'
			),
			'onsubmit_label' => $this->onsubmit_label,
			'pagenow'        => 'product_page_product_importer',
			'adminpage'      => 'product_page_product_importer',
			'props'          => (object) array(),
		)
	);
}