Download wp-cli:

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp --info

Add crontab in /var/spool/cron/root:

*/15 * * * *    /usr/local/bin/wp cron event run --due-now --path=/home/domain.com/public_html/ >/dev/null 2>&1;

Make sure your crontab file is good linux format:

crontab -e
# ESC then:
:set fileformat=unix
:wq

Disable WP_CRON in wp-config.php:

define('DISABLE_WP_CRON', true);

By Proxy, block or return empty page for requests to your http://domain.com/wp-cron.php

DMCA.com Protection Status


Leave a Reply

Your email address will not be published. Required fields are marked *