Tracks: set cookie on admin_init
This commit is contained in:
parent
90aa716098
commit
f7e56be638
|
@ -34,7 +34,7 @@ class WC_Tracks_Client {
|
|||
*/
|
||||
public static function init() {
|
||||
// Use wp hook for setting the identity cookie to avoid headers already sent warnings.
|
||||
add_action( 'wp_loaded', array( __CLASS__, 'maybe_set_identity_cookie' ) );
|
||||
add_action( 'admin_init', array( __CLASS__, 'maybe_set_identity_cookie' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue