Where to place cron job code
-
Good afternoon
On the suggestion of my hosting company I recently addeddefine('DISABLE_WP_CRON', true);to my wp-config file.
Then I discovered my backups weren’t working. Read up on the situation and copied this code from UpdraftPlusdefine('UPDRAFTPLUS_CONSOLELOG', true); define('DOING_CRON', true); require_once('wp-load.php'); do_action('updraft_backup_all');Do I place this in my wp-config file or in a new file?
Then do I set up via cPanel/Cron Jobs a new job using the command
/usr/local/bin/php /home/user/public_html/wp-cron.phpand set a time etc and do this for all my sites? I imagine this setting would need to correspond to whatever time settings I have set in UpdraftPlus settings?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Where to place cron job code’ is closed to new replies.