Filters extends React_Tab

Filters tab of the settings panel.

Table of Contents

$file_name  : string
Name of the file that will be enqueued.
$json_accessor  : string
The name of the constant that holds the json data for the frontend.
$section_name  : string
Name of the section.
$plugin  : Licensed_Plugin
Plugin instance.
__construct()  : mixed
Get things started.
assets()  : void
Hook assets needed for this specific tab only.
get_json()  : array<string|int, mixed>
App json data.
output()  : void
Output the dom element where the react app will render.
register()  : void
Hook into WP.

Properties

$file_name

Name of the file that will be enqueued.

public string $file_name = 'wcf-filters-editor'

Name only, without the extension.

$json_accessor

The name of the constant that holds the json data for the frontend.

public string $json_accessor = 'wcf_filters_editor'

$section_name

Name of the section.

public string $section_name = 'filters-editor'

Needed so that react assets are loaded only on this specific section.

$plugin

Plugin instance.

private Licensed_Plugin $plugin

Methods

__construct()

Get things started.

public __construct(Licensed_Plugin $plugin) : mixed
Parameters
$plugin : Licensed_Plugin
Return values
mixed

assets()

Hook assets needed for this specific tab only.

public assets() : void
Return values
void

get_json()

App json data.

public get_json() : array<string|int, mixed>
Return values
array<string|int, mixed>

output()

Output the dom element where the react app will render.

public output() : void
Return values
void

register()

Hook into WP.

public register() : void
Return values
void

Search results