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 wouldn’t 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?
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com