Refine extends Step

Handles generation of the include and exclude parameters.

Tags

Table of Contents

__construct()  : mixed
Get things started.
format_cf()  : array<string|int, mixed>|WP_Error
Format custom fields - validate that all inputs are filled.
format_stati()  : array<string|int, mixed>
Format status data.
format_terms()  : array<string|int, mixed>
Format terms data.
get_data()  : mixed
{@inheritdoc}
get_fields_list()  : array<string|int, mixed>
Define list of fields.
prepare_parameters()  : array<string|int, mixed>
Loop through parameters and format each and every one of them.
save_data()  : mixed
{@inheritdoc}
unset_name()  : array<string|int, mixed>
Format author data.

Methods

__construct()

Get things started.

public __construct([bool|object $plugin = false ]) : mixed
Parameters
$plugin : bool|object = false
Tags
Return values
mixed

format_cf()

Format custom fields - validate that all inputs are filled.

public static format_cf(array<string|int, mixed> $data) : array<string|int, mixed>|WP_Error
Parameters
$data : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>|WP_Error

format_stati()

Format status data.

public static format_stati(array<string|int, mixed> $data) : array<string|int, mixed>

Basically we just remove the "label" property here and then check the value of the "match" property.

Parameters
$data : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

format_terms()

Format terms data.

public static format_terms(array<string|int, mixed> $data) : array<string|int, mixed>

Basically we just remove the "name" property here and then check the value of the "match" property.

Parameters
$data : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

get_data()

{@inheritdoc}

public get_data(mixed $request) : mixed
Parameters
$request : mixed
Tags
Return values
mixed

get_fields_list()

Define list of fields.

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

prepare_parameters()

Loop through parameters and format each and every one of them.

public static prepare_parameters(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
$parameters : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

save_data()

{@inheritdoc}

public save_data(mixed $request) : mixed
Parameters
$request : mixed
Tags
Return values
mixed

unset_name()

Format author data.

public static unset_name(array<string|int, mixed> $data) : array<string|int, mixed>

Basically we just remove the "name" and "label" property here.

Parameters
$data : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

Search results