WordPress cron hooks – same callback for completely different action?
No, not quite. When you say this: wp_schedule_single_event( $sent_on, ‘my_custom_cron’, [ $notif_id, $notif_name, $membership_id, $lesson_id ] ); You are essentially saying is when the current time passes $sent_on, do: do_action( ‘my_custom_cron’, [ $notif_id, $notif_name, $membership_id, $lesson_id ] ); Cron jobs are just a TODO note to fire an action with some arguments in the future. … Read more