English (United Kingdom)

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

Fires after displaying all the purchased packages.


Description

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

The following image indicates where the resulting HTML will be appended.


Parameters

$html

(string)  The HTML to include.

$order

(VAPOrderPackage)  The instance holding the order details.


Example

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

    return $html;
}, 10, 2);

Changelog

Version Description
1.2 Introduced.
Last Update: 2021-07-30
Helpful?
This site uses cookies. By continuing to browse you accept their use. Further information