wp cron, admin and updates
-
I am building a cron that makes a backup, updates plugins, updates the core, emails me if updates happened or deletes the backups if not. The cron has been scheduled for a weekend at night, giving me a chance to browse the site and see if anything is broken.
I built and tested the code that the hook/function runs in the cron, on a custom admin page dedicated to dev. It occurred to me before bed that the conditions would not be the same in the cron, it wouldnt have a logged in admin, and it wouldnt have loaded the same files as an admin page.
Am I wrong, does wp-cron require admin files before a task is run?
Does a user need to be logged in for plugins, or core to update?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp cron, admin and updates’ is closed to new replies.