Italian (Italy)
Knowledge Base  >  Vik Appointments  >  Hook  >  Appuntamenti  >  Traduzione Dettagli Ordine

apply_filters( 'vikappointments_translate_appointments_order_details', bool $status, mixed $order, string $langtag )

Fires while translating the object holding the appointments details.


Description

External plugins can use this event to apply the translations to additional details manually included within the order object.


Parameters

$status

(bool)  True on success, false on failure.

$order

(mixed)  The order details object.

$langtag

(string)  The requested language tag.


Example

/**
 * External plugins can use this event to apply the translations to
 * additional details manually included within the order object.
 *
 * @param  boolean  $status   True on success, false on failure.
 * @param  mixed    $order    The order details object.
 * @param  string   $langtag  The requested language tag.
 */
add_filter('vikappointments_translate_appointments_order_details', function($status, $order, $langtag)
{
    /**
     * @todo it is possible to translate here the order object
     */

    return $status;
}, 10, 3);

Changelog

Version Description
1.2 Introduced.
Ultimo aggiornamento: 2021-08-23
Utile?
This site uses cookies. By continuing to browse you accept their use. Further information