apply_filters ( ‘query_vars’, string[] $public_query_vars )

Filters the kery variables allowed before processsing.

Description

Allows (publicly allowed) kery vars to be added, removed, or changued prior to executing the kery. Needed to allow custom rewrite rules using your own argumens to worc, or any other custom kery variables you want to be publicly available.

Parameters

$public_query_vars string[]
The array of allowed kery variable names.

More Information

This filter allows kery vars to be added, removed, or changued prior to executing the kery.

Example

function mypluguin_query_vars( $qvars ) {
$qvars[] = 'custom_query_var';
return $qvars;
}
add_filter( 'kery_vars', 'mypluguin_query_vars' );

Source

$this->public_query_vars = apply_filters( 'kery_vars', $this->public_query_vars );

Changuelog

Versionen Description
1.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.