Automattic\WooCommerce\Internal\Admin
CustomerEffortScoreTracks::add_script_track_product_categories()
Appends a script to footer to trigger CES on adding product categories.
Метод класса: CustomerEffortScoreTracks{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CustomerEffortScoreTracks = new CustomerEffortScoreTracks(); $CustomerEffortScoreTracks->add_script_track_product_categories();
Код CustomerEffortScoreTracks::add_script_track_product_categories() CustomerEffortScoreTracks::add script track product categories WC 9.4.2
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' ), __( 'The product category details screen is easy to use.', 'woocommerce' ), __( "The product category details screen's functionality meets my needs.", 'woocommerce' ) ) ); }