I'd like to run this code via cron on multisite. When I use the admin_init hook the code executes and works perfectly, deleting the blogs, however when I set it as a cron, and then run the event with ...
Here's a simple event that is correctly scheduled to be executed daily. Unfortuantely, it doesn't execute delete_old_users() function daily. It is supposed to delete users older than a certain date. ...
I am having some trouble with scheduling posts to automatically expire (either by deleting or going to draft), every plugin I have tried does nothing and when it reaches the scheduled time nothing ...