Automattic\WooCommerce\Internal\Admin
CustomerEffortScoreTracks::run_on_add_product_attributes
Enqueue the CES survey on adding new product attributes.
Method of the class: CustomerEffortScoreTracks{}
No Hooks.
Returns
null. Nothing (null).
Usage
$CustomerEffortScoreTracks = new CustomerEffortScoreTracks(); $CustomerEffortScoreTracks->run_on_add_product_attributes();
CustomerEffortScoreTracks::run_on_add_product_attributes() CustomerEffortScoreTracks::run on add product attributes code WC 10.3.3
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(),
)
);
}