Automattic\WooCommerce\Internal\Admin
CustomerEffortScoreTracks::enqueue_ces_survey_for_edited_shop_order()
Enqueue the CES survey trigger for an existing shop order.
Метод класса: CustomerEffortScoreTracks{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->enqueue_ces_survey_for_edited_shop_order();
Код CustomerEffortScoreTracks::enqueue_ces_survey_for_edited_shop_order() CustomerEffortScoreTracks::enqueue ces survey for edited shop order WC 8.7.0
private function enqueue_ces_survey_for_edited_shop_order() { if ( $this->has_been_shown( self::SHOP_ORDER_UPDATE_ACTION_NAME ) ) { return; } $this->enqueue_to_ces_tracks( array( 'action' => self::SHOP_ORDER_UPDATE_ACTION_NAME, 'title' => __( 'How easy was it to update an order?', 'woocommerce' ), 'firstQuestion' => __( 'The order details screen is easy to use.', 'woocommerce' ), 'secondQuestion' => __( 'The order details screen\'s functionality meets my needs.', 'woocommerce' ), 'onsubmit_label' => $this->onsubmit_label, 'pagenow' => 'shop_order', 'adminpage' => 'post-php', 'props' => array( 'order_count' => $this->get_shop_order_count(), ), ) ); }