Answer the question
In order to leave comments, you need to log in
Wordpress - how to execute a script once a day?
In general, the task is this, you need to show a popup that is called by a simple js function once a day for each visitor.
Doing so
(function ($) {
$(function () {
if($.cookie('pop')) {
console.log("Попап уже появлялся.")
} else {
setTimeout(function(){
Popup.getShowTarget('popup__thanks'); //Функция вывода попапа
$.cookie('pop', 'on', { expires: 1 });
}, 10000)
}
})
})(jQuery);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question