If I set DISABLE_WP_CRON
to true
in my wp-config.php
file, then will it block plugins from registering new cron occasions (eg with calls to wp_schedule_event()
)
outline( 'DISABLE_WP_CRON', true );
I’ve added the above line to my wp-config.php
. I feel the final assumption is that DISABLE_WP_CRON
does not truly block your cron jobs from operating (and block plugins from registering new occasions), however that it simply prevents wordpress itself from initiating your crons when a customer masses your web site of their net browser.
And, as an alternative, you’ll be able to simply set DISABLE_WP_CRON
to true
after which execute your cron jobs exterior of the online server (eg with wp-cli
and the precise, system cron).
Is that this assumption legitimate? Or does DISABLE_WP_CRON
truly block crons from operating, and block plugins from registering new cron occasions?
I ask as a result of I am writing a plugin that tries to register a brand new cron occasion with wp_schedule_event()
. The perform returns True, however the brand new cron job does not seem in my occasion record, so I do not suppose it would ever be executed by my system’s cron.
wp cron occasion record
How can I stop wordpress from executing its personal cron through the webserver when my guests load the web site via their net browsers, however nonetheless allow [a] crons to be executed by instruments like wp-cli
and [b] plugins to register new cron occasions?