Your cart is empty!
Send Employee Notification
public function onBeforeSendEmployeeSmsNotification(mixed $order) : bool
Fires before sending a SMS notification to the employee.
Description
Choose at runtime whether the employee 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
- $order
-
(VAPOrderAppointment) An object holding the details of the order.
Return Value
Boolean. Whether the SMS should be sent.
Example
/**
* Choose at runtime whether the employee should receive SMS notifications.
*
* @param mixed $order The object holding the details of the order.
*
* @return boolean Whether the SMS should be sent.
*/
public function onBeforeSendEmployeeSmsNotification($order)
{
/**
* @todo do stuff here
*/
return true;
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-08 16:35
Helpful?