Restaurant_Ordering implements Registerable

Provides functionality for the Restaurant Ordering plugin.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable

Table of Contents

adjust_price_parameter()  : array<string|int, mixed>
Adjust the price parameter for the modal.
register()  : mixed
render_discount()  : string
Render the discounts list in the modal.
render_product_display_price()  : string
Render the product display price discounted.
uncache_response()  : array<string|int, mixed>
Uncache the response.

Methods

adjust_price_parameter()

Adjust the price parameter for the modal.

public adjust_price_parameter(array<string|int, mixed> $data, WC_Product $product) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>

The data.

$product : WC_Product

The product.

Return values
array<string|int, mixed>

render_discount()

Render the discounts list in the modal.

public render_discount(string $description, WC_Product $product) : string
Parameters
$description : string

The description.

$product : WC_Product

The product.

Return values
string

render_product_display_price()

Render the product display price discounted.

public render_product_display_price(string $price, WC_Product $product) : string
Parameters
$price : string

The price.

$product : WC_Product

The product.

Return values
string

uncache_response()

Uncache the response.

public uncache_response(array<string|int, mixed> $headers) : array<string|int, mixed>
Parameters
$headers : array<string|int, mixed>

The headers.

Return values
array<string|int, mixed>

Search results