Add appointment and object variable to wc_twilio_sms_appointments_token_map filter

Issue #679 resolved
Valentina R created an issue

This is the original filter:

$token_map = (array) apply_filters( 'wc_twilio_sms_appointments_token_map', $token_map );

It would be very useful to change it to:

$token_map = (array) apply_filters( 'wc_twilio_sms_appointments_token_map', $token_map, $appointment, $order );

so that customers can potentially add some other field if they need to.


Needed here.

Comments (1)

  1. Log in to comment