English (United Kingdom)

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

Fires after displaying all the purchased subscription.


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

(VAPOrderSubscr)  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_subscription_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?