U have a WordPress multisite install with subfolders. U'm trying to set up cron jobs. I know I can setup for each site with,

HTTP_HOST=sub.example.com php wp-cron.php > /dev/null

But this doesn't work for subfolders. I also know I can use wget or curl. But is there a way for doing it with php?

Edit: Not a duplicate of suggested question because I clearly mentioned that I have a subfolder install. Answers to that question mostly include wp-cli and some scripts. I don't need that.

Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.