Restaurant_Ordering implements Registerable
Provides functionality for the Restaurant Ordering plugin.
Tags
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> —register()
public
register() : mixed
Tags
Return values
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.