WordPress at Your Fingertips
function is not described

WC_Orders_Tracking::init() public WC 1.0

Init tracking.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Orders_Tracking::init() WC 5.8.0

public function init() {
	add_action( 'woocommerce_order_status_changed', array( $this, 'track_order_status_change' ), 10, 3 );
	add_action( 'load-edit.php', array( $this, 'track_orders_view' ), 10 );
	add_action( 'pre_post_update', array( $this, 'track_created_date_change' ), 10 );
	// WC_Meta_Box_Order_Actions::save() hooks in at priority 50.
	add_action( 'woocommerce_process_shop_order_meta', array( $this, 'track_order_action' ), 51 );
	add_action( 'load-post-new.php', array( $this, 'track_add_order_from_edit' ), 10 );
	add_filter( 'woocommerce_shop_order_search_results', array( $this, 'track_order_search' ), 10, 3 );
}