I am trying to trigger a function using cron job in a time interval of 1 minute but it is not working, am I missing something?
register_activation_hook(__FILE__, 'my_event_recurring_activation'); function my_event_recurring_activation() { if (! wp_next_scheduled ( 'recurring_event' )) { wp_schedule_event(time(), 'every_minute', 'recurring_event'); } } add_action('recurring_event', 'do_this_daly'); function do_this_daly() { update_acf_field_programmatic(); }