I need a cron job to execute the following url
The problem is that it requires to be logged in as admin, what are my options? I’ve tried a few plugins but they use hooks instead of just executing a url and the cron jobs provided by the control panel does not log in to the website.
Your option using WP internals would be to use the HTTP API along with
wp schedule event
Create a scheduled event, something like:
This is a simple example please refer to the codex for additional techniques and/or arguments.
It’s important to note WP cron only triggers when someone visits your WordPress site, fora true stateless cron you would need to use something at the server level or a better wrapper.