Application

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.
b2_format_html_attributes()  : string
Formats an array of attributes into a string to be used inside a HTML tag.
edd_hidden_callback()  : mixed
edd_barn2_license_callback()  : mixed

Functions

wc_product_table()

Global namespace version of Barn2\Plugin\WC_Product_Table\wpt(). Returns the shared plugin instance.

wc_product_table() : Plugin
Tags
deprecated
2.6.2

Use Barn2\Plugin\WC_Product_Table->wpt()

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.

Return values
mixed

b2_format_html_attributes()

Formats an array of attributes into a string to be used inside a HTML tag.

b2_format_html_attributes(array<string|int, mixed> $atts) : string

The first attribute will contain a single space before it.

E.g. b2_format_html_attributes( array( 'data-thing' => 'foo', 'class' = 'test' ) )

would give this string:

' data-thing="foo" class="test"'

Parameters
$atts : array<string|int, mixed>

The attributes to format

Return values
string

The attribute string

edd_hidden_callback()

edd_hidden_callback(mixed $args) : mixed
Parameters
$args : mixed
Return values
mixed

edd_barn2_license_callback()

edd_barn2_license_callback(mixed $args) : mixed
Parameters
$args : mixed
Return values
mixed

Search results