Automattic\WooCommerce\Internal\Admin
CustomerEffortScoreTracks::run_on_add_product_attributes()
Enqueue the CES survey on adding new product attributes.
Метод класса: CustomerEffortScoreTracks{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CustomerEffortScoreTracks = new CustomerEffortScoreTracks(); $CustomerEffortScoreTracks->run_on_add_product_attributes();
Код CustomerEffortScoreTracks::run_on_add_product_attributes() CustomerEffortScoreTracks::run on add product attributes WC 9.6.0
public function run_on_add_product_attributes() { if ( $this->has_been_shown( self::ADD_PRODUCT_ATTRIBUTES_ACTION_NAME ) ) { return; } $this->enqueue_to_ces_tracks( array( 'action' => self::ADD_PRODUCT_ATTRIBUTES_ACTION_NAME, 'title' => __( 'How easy was it to add a product attribute?', 'woocommerce' ), 'firstQuestion' => __( 'Product attributes are easy to use.', 'woocommerce' ), 'secondQuestion' => __( 'Product attributes\' functionality meets my needs.', 'woocommerce' ), 'onsubmit_label' => $this->onsubmit_label, 'pagenow' => 'product_page_product_attributes', 'adminpage' => 'product_page_product_attributes', 'props' => (object) array(), ) ); }