Useful post. Just tiny note: Instead of this non-precise info “” define(‘DISABLE_WP_CRON’, …

Saturday, 20th April 2024

Comment on How to resolve (fix) WordPress wp-cron.php errors like “POST /wp-cron.php?doing_wp_cron HTTP/1.0″ 404” / What is wp-cron.php and what it does by Dave.

Useful post.

Just tiny note:

Instead of this non-precise info “”

define(‘DISABLE_WP_CRON’, true);

An important note to make here is that it makes sense the position in wp-config.php, where define(‘DISABLE_WP_CRON’, true); is placed. If for instance you put it at the end of file or near the end of the file, this setting will not take affect.
With that said be sure to put the variable define, somewhere along the file initial defines or it will not work.

– See more at: https://www.pc-freak.net/blog/how-to-resolve-fix-wordpress-wp-cron-php-errors-like-post-wp-cron-phpdoing_wp_cron-http1-0-404-what-is-wp-cron-php-and-what-it-does/#sthash.TBNAaISu.dpuf””

define(‘DISABLE_WP_CRON’, true); should be placed in wp-config.php before any calls of require_once. Otherwise it’s non precise and misleading for novice users.

Otherwise, good article!

Share this on:

Comments are closed.