What wrong with my function
-
hi,
everything works well until i add this function in my personal plugin.
since backWPup does not work anymore (operation launched but stop)
Here is my code
Does anyone can tell me what is wrong with my code. Thanks a lot.CODE
——
* fonction ajout de cookie – pour 1ere visite */
/* etape 1 : ajout du cookie duree 182 jours 6 mois */function o99_set_newvisitor_cookie() {
if ( !is_admin() && !isset($_COOKIE[‘aradaff_1erevisite’])) {
setcookie(‘aradaff_1erevisite’, 1, time()+3600*24*182, COOKIEPATH, COOKIE_DOMAIN, false);
wp_safe_redirect(home_url(‘/welcome/’));exit;
}}
add_action( ‘init’, ‘o99_set_newvisitor_cookie’);
The topic ‘What wrong with my function’ is closed to new replies.