final class WC_Tab_Navigator

A class to encompass the creation and script handling of the WooCommerce Tabs UI component.

Methods

array
get_tabs()

Get the tabs belonging to the Navigator instance.

__construct(array $args)

Construct an instance of the Navigator.

add_tab(string $id, array $tab)

Add a tab to the navigator.

tab_null_render()

An empty function to call in case a default render was not provided.

print_navigator()

Print the Navigator HTML.

static 
enqueue_navigator_script()

Check whether the WPPF WC Tab Navigator scripts have been enqueued and maybe enqueue them.

Details

at line 36
final array get_tabs()

Get the tabs belonging to the Navigator instance.

Return Value

array

The tabs.

at line 43
__construct(array $args)

Construct an instance of the Navigator.

Parameters

array $args

The arguments to create the Navigator with (i.e. the initial 'tabs').

at line 64
final add_tab(string $id, array $tab)

Add a tab to the navigator.

Parameters

string $id

The ID of the tab.

array $tab

The tab information.

at line 80
final tab_null_render()

An empty function to call in case a default render was not provided.

at line 85
final print_navigator()

Print the Navigator HTML.

at line 92
final static enqueue_navigator_script()

Check whether the WPPF WC Tab Navigator scripts have been enqueued and maybe enqueue them.