• Resolved farid1492

    (@farid1492)


    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)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    The minimum recurrence length is 10 minutes (this is a limitation in WordPress itself, not the WP Crontrol plugin).

    In addition to this, your website needs to receive traffic in order for cron events to fire. If your site doesn’t receive any traffic, then the cron jobs will run when you visit your own site.

Viewing 1 replies (of 1 total)

The topic ‘Cron only work when loggin’ is closed to new replies.