2

I'm using the alternate cron version, but i need to prevent it from running on some calls, how can i do this?

In the cron.php file i've seen on line 225

if ( defined('ALTERNATE_WP_CRON') && ALTERNATE_WP_CRON ) {
    if ( !empty($_POST) || defined('DOING_AJAX') )
        return;

but i've tried defining define('DOING_AJAX', true) and it never stops the cron. Maybe i'm defining the constant too late. When should i define it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.