WordPress at Your Fingertips
function is not described

WC_Tracks_Client::init() public WC 1.0

Initialize tracks client class

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

No Hooks.


null. Nothing.


$result = WC_Tracks_Client::init();

Code of WC_Tracks_Client::init() WC 5.8.0

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' ) );