Automattic\WooCommerce\Internal\Admin

CustomerEffortScoreTracks::add_script_track_product_categories()publicWC 1.0

Appends a script to footer to trigger CES on adding product categories.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код CustomerEffortScoreTracks::add_script_track_product_categories() WC 7.1.0

public function add_script_track_product_categories() {
	if ( $this->has_been_shown( self::ADD_PRODUCT_CATEGORIES_ACTION_NAME ) ) {
		return;
	}

	wc_enqueue_js(
		$this->get_script_track_edit_php(
			self::ADD_PRODUCT_CATEGORIES_ACTION_NAME,
			__( 'How easy was it to add product category?', 'woocommerce' )
		)
	);
}