Automattic\WooCommerce\Internal\Admin

CustomerEffortScoreTracks::run_on_add_product_attributes()publicWC 1.0

Enqueue the CES survey on adding new product attributes.

{} It's a method of the class: CustomerEffortScoreTracks{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of CustomerEffortScoreTracks::run_on_add_product_attributes() WC 7.1.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,
			'label'          => __(
				'How easy was it to add a product attribute?',
				'woocommerce'
			),
			'onsubmit_label' => $this->onsubmit_label,
			'pagenow'        => 'product_page_product_attributes',
			'adminpage'      => 'product_page_product_attributes',
			'props'          => (object) array(),
		)
	);
}