Automattic\WooCommerce\Internal\Admin

CustomerEffortScoreTracks::add_script_track_product_tags()publicWC 1.0

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

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код CustomerEffortScoreTracks::add_script_track_product_tags() WC 7.1.0

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

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