Add hook to $appointment->maybe_schedule_event

Issue #988 new
Serafín Danessa created an issue

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!

Comments (0)

  1. Log in to comment