Il tuo carrello è vuoto!
Display Summary
apply_filters( 'vikrestaurants_display_order_summary', string $html, object $order )
Fires after displaying the summary of a take-away order.
Description
Trigger hook to let the plugins add custom HTML contents below the order summary.
The returned HTML will be always displayed after the default contents of the page.
Parameters
- $html
-
(string) The HTML to include.
- $order
-
(VREOrderTakeaway) The instance holding the take-away order details.
Example
/**
* Trigger event to let the plugins add custom HTML contents below the take-away summary.
*
* @param string $html The HTML string to include within the document.
* @param object $order The object holding the order details.
*/
add_filter('vikrestaurants_display_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.3 | Introduced. |
Ultimo aggiornamento: 2023-12-21
Utile?