WC_Products_Tracking::init()publicWC 1.0

Init tracking.

Method of the class: WC_Products_Tracking{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Products_Tracking = new WC_Products_Tracking();
$WC_Products_Tracking->init();

WC_Products_Tracking::init() code WC 8.7.0

public function init() {
	add_action( 'load-edit.php', array( $this, 'track_products_view' ), 10 );
	add_action( 'load-edit-tags.php', array( $this, 'track_categories_and_tags_view' ), 10, 2 );
	add_action( 'edit_post', array( $this, 'track_product_updated' ), 10, 2 );
	add_action( 'wp_after_insert_post', array( $this, 'track_product_published' ), 10, 4 );
	add_action( 'created_product_cat', array( $this, 'track_product_category_created' ) );
	add_action( 'edited_product_cat', array( $this, 'track_product_category_updated' ) );
	add_action( 'add_meta_boxes_product', array( $this, 'track_product_updated_client_side' ), 10 );
	add_action( 'admin_enqueue_scripts', array( $this, 'possibly_add_product_tracking_scripts' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'possibly_add_product_import_scripts' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'possibly_add_attribute_tracking_scripts' ) );
	add_action( 'admin_enqueue_scripts', array( $this, 'possibly_add_tag_tracking_scripts' ) );
}