Italian (Italy)

apply_filters( 'vikappointments_display_order_summary_head', string $html, object $order )

Fires before displaying the details of the booked appointments.


Description

Trigger hook to let the plugins add custom HTML contents before the order summary. The returned HTML will be always included outside the form of the page.

The HTML returned by this hook is the very first thing you'll see on the page.


Parameters

$html

(string)  The HTML to include.

$order

(VAPOrderAppointment)  The instance holding the order details.


Example

/**
 * Trigger event to let the plugins add custom HTML contents before the order summary.
 *
 * @param  string  $html   The HTML string to include within the document.   
 * @param  object  $order  The object holding the appointments details.
 */
add_filter('vikappointments_display_order_summary_head', function($html, $order) {
    // append custom HTML
    $html .= '<code>HTML CODE WILL BE ADDED HERE</code>';

    return $html;
}, 10, 2);

Changelog

Version Description
1.2.19 Introduced.
Ultimo aggiornamento: 6 giorni fa
Utile?