template-functions.php
Table of Contents
- wc_product_table() : Plugin
- Global namespace version of Barn2\Plugin\WC_Product_Table\wpt(). Returns the shared plugin instance.
- wc_get_product_table() : string
- Returns a new product table with the specified arguments.
- wc_the_product_table() : mixed
- Prints (echos) a product table with the specified arguments.
Functions
wc_product_table()
Global namespace version of Barn2\Plugin\WC_Product_Table\wpt(). Returns the shared plugin instance.
wc_product_table() : Plugin
Tags
Return values
Plugin —The plugin instance.
wc_get_product_table()
Returns a new product table with the specified arguments.
wc_get_product_table([array<string|int, mixed> $args = [] ]) : string
Parameters
- $args : array<string|int, mixed> = []
-
The table arguments.
Return values
string —The product table HTML.
wc_the_product_table()
Prints (echos) a product table with the specified arguments.
wc_the_product_table([array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $args : array<string|int, mixed> = []
-
The table arguments.