Product_Modal
Handles retrieval of the modal data for a product.
Tags
Table of Contents
- $product : WC_Product
- $template_loader : Template_Loader
- __construct() : mixed
- get_modal_data() : array<string|int, mixed>
- Gets the modal data for the product.
- get_modal_description() : mixed
- get_modal_image_size() : mixed
- get_modal_stock_status() : mixed
- is_purchasable() : mixed
Properties
$product
protected
WC_Product
$product
The product for the modal.
Tags
$template_loader
private
Template_Loader
$template_loader
The template loader.
Tags
Methods
__construct()
public
__construct(WC_Product $product) : mixed
Parameters
- $product : WC_Product
Tags
Return values
mixed —get_modal_data()
Gets the modal data for the product.
public
get_modal_data() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The modal data.
get_modal_description()
protected
get_modal_description() : mixed
Tags
Return values
mixed —get_modal_image_size()
protected
get_modal_image_size() : mixed
Tags
Return values
mixed —get_modal_stock_status()
protected
get_modal_stock_status() : mixed
Tags
Return values
mixed —is_purchasable()
private
is_purchasable() : mixed