Documentation

Namespaces

Barn2
WPTRT

Interfaces, Classes and Traits

Product_Table_Data
An interface for table data.
WCPT_Util
WCPT_Settings
Html_Table_Cell
Represents a cell in a <code>Html_Table_Row</code>.
Html_Table_Row
Represents a row in a <code>Html_Data_Table</code>.
Html_Data_Table
Represents a HTML table. This class allows you to build a table by sequentially adding headings, rows, data, etc, and then outputting to either HTML, and array or JSON.
WP_Scoped_Hooks
Allows a temporary hook environment to be created for a given timeframe (i.e. scope), where any hooks added or removed will be recognised only during the specified scope. After the given scope, the original WordPress hook environment is restored to its previous state.

Table of Contents

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_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