\Barn2\Plugin\WC_Product_TableConfig_Builder

Responsible for creating the product table config script.

Summary

Methods
Properties
Constants
__construct()
get_config()
get_filters()
$id
$args
$columns
No constants found
No protected methods found
No protected properties found
N/A
get_filter_heading()
get_terms_for_filter()
build_term_tree()
array_filter_length_menu()
No private properties found
N/A

Properties

$id

$id :string

Type

string—The table ID.

Methods

get_config()

get_config(): array

Build config for the table, to add as inline script to current page.

Returns

array —

The table config

get_filters()

get_filters()

get_filter_heading()

get_filter_heading(  $index,  $filter)

Parameters

$index
$filter

get_terms_for_filter()

get_terms_for_filter(  $filter)

Parameters

$filter

build_term_tree()

build_term_tree(array  $terms,  $parent_id)

Parameters

array $terms
$parent_id

array_filter_length_menu()

array_filter_length_menu(  $length)

Parameters

$length