Add hook to $appointment->maybe_schedule_event
Issue #988
new
Adding a hook to the function maybe_schedule_event will allow extending the reminders functionality and others.
Now, for example, I want to add a second reminder, but I can’t without editing the plugins code.
Here’s a proposed solution:
/**
* Hook: woocommerce_appointment_maybe_schedule_event
*
* @param WC_Appointment $this Appointment object.
* @param string $type
*/
do_action( 'woocommerce_appointment_maybe_schedule_event', $this, $type );
Thanks!