I have a page in my WordPress site that calculates post popularity and updates several meta fields on the posts and calls a few functions as well. This page is set to “Private” so that only myself and other admins can see it. Is there a way to load this page automatically every 6, 12, or 24 hours?
I’d be satisfied with a plugin, but generally prefer to write my own PHP code.
Create a cron job or use WordPress directly with
wp_schedule_event()
. The latter would probably allow you to remove the placeholder page.