public function onBeforeSendAdminSmsNotification(mixed $order) : bool

Fires before sending a SMS notification to the administrator.


Description

Choose at runtime whether the administrator 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 admin 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 onBeforeSendAdminSmsNotification($order)
{
    /**
     * @todo do stuff here
     */

    return true;
}

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-08 16:34
Helpful?