WordPress at Your Fingertips
function is not described

WC_Products_Tracking::init() public WC 1.0

Init tracking.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Products_Tracking::init() WC 5.8.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( 'transition_post_status', array( $this, 'track_product_published' ), 10, 3 );
	add_action( 'created_product_cat', array( $this, 'track_product_category_created' ) );
	add_action( 'add_meta_boxes_product', array( $this, 'track_product_updated_client_side' ), 10 );
}