WC_Tracks_Client::init()public staticWC 1.0

Initialize tracks client class

Method of the class: WC_Tracks_Client{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Tracks_Client::init();

WC_Tracks_Client::init() code WC 9.0.1

public static function init() {
	// Use wp hook for setting the identity cookie to avoid headers already sent warnings.
	add_action( 'admin_init', array( __CLASS__, 'maybe_set_identity_cookie' ) );
}