Cron only work when loggin
-
i have installed wordpress 4.6 and i have install this plugin to run a job at every five min mycode is this to send email and i have created a cron job using this plugin.
add_action( ‘mh_participate_winner’, ‘mh_participate_winner_func’ );
function mh_participate_winner_func() {
wp_mail( ‘demo@gmail.com’, ‘Automatic email’, ‘Automatic scheduled email from WordPress to test cron’);
}this cron job only fire when i am logged in and a backend page is open in wordpress backend. and if i am not loggedin and backend page is not open i don’t get any email
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Cron only work when loggin’ is closed to new replies.