I have created a cookie in a plugin with the basic PHP function
This cookie is in a function.
I can see the cookie in my browser console in admin but not on front.
I added just after my function :
add_action( 'after_setup_theme', 'nameofmyfunctionwherecookieisset', 0 );
But I see no changes.
My question is, how can I get my cookie both in admin and the frontend ?
I am in WP 4.8