Italian (Italy)
Knowledge Base  >  Vik Appointments  >  Hook  >  SMS  >  Inviare Notifica all'Amministratore

apply_filters( 'vikappointments_before_send_admin_sms_notification', bool $send, mixed $order )

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

$send

(bool)  Whether the SMS should be sent.

$order

(VAPOrderAppointment)  An object holding the details of the order.


Example

/**
 * Choose at runtime whether the admin 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_admin_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?

Questo sito web utilizza i cookie

Questo sito web utilizza cookie e tecnologie simili. Alcune di queste tecnologie sono necessarie per il corretto funzionamento del sito web (essenziali). Altre tecnologie sono utilizzate per valutare il comportamento degli utenti (analisi), per integrare media esterni o per scopi pubblicitari. Se l'utente accetta, queste tecnologie vengono attivate. I dettagli sono riportati nella Privacy Policy. Da questa stessa pagina è inoltre possibile aggiornare/revocare il consenso. Se non si fornisce il consenso, verranno attivati solo i cookie con funzioni essenziali.

Sul nostro sito web utilizziamo tecnologie provenienti dagli Stati Uniti. Pertanto, se acconsentite, acconsentite anche al trasferimento dei vostri dati negli Stati Uniti. Desideriamo sottolineare che gli Stati Uniti non hanno un livello di protezione dei dati paragonabile a quello dell'Unione Europea e che qualsiasi azienda statunitense può essere obbligata dalle autorità statali a consegnare i vostri dati senza che voi abbiate alcuno strumento efficace di protezione legale contro questo.