Tracks: set cookie on admin_init

This commit is contained in:
Paul Sealock 2019-05-22 12:14:28 +12:00
parent 90aa716098
commit f7e56be638
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class WC_Tracks_Client {
*/ */
public static function init() { public static function init() {
// Use wp hook for setting the identity cookie to avoid headers already sent warnings. // 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' ) );
} }
/** /**