Il tuo carrello è vuoto!
Inviare Notifica al Cliente
apply_filters( 'vikappointments_before_send_customer_sms_notification', bool $send, mixed $order )
Fires before sending a SMS notification to the customer.
Description
Choose at runtime whether the customer should receive SMS notifications or not.
It is possible to return true to send the notification, false to deny the notification or null to rely on the default setting.
Parameters
- $send
-
(bool) Whether the SMS should be sent.
- $order
-
(VAPOrderAppointment) An object holding the details of the order.
Example
/**
* Choose at runtime whether the customer should receive SMS notifications.
*
* @param boolean $send Whether the SMS should be sent.
* @param mixed $order The object holding the details of the order.
*/
add_filter('vikappointments_before_send_customer_sms_notification', function($send, $order)
{
/**
* @todo do stuff here
*/
return $send;
}, 10, 2); Changelog
| Version | Description |
|---|---|
| 1.2 | Introduced. |
Ultimo aggiornamento: 2021-08-06
Utile?