Controls which query arguments are allowed in the Relevanssi admin search.
relevanssi_query_arg_allowlist
apply_filters( 'relevanssi_query_arg_allowlist', array $allowlist )
Parameters
$allowlist
(array) An array of allowed query variables.
More information
Relevanssi admin search lets you enter a query parameter string that will be parsed into individual query arguments. If you’re debugging a specific search, you can copy the parameter list from the search results page URL and use that as the search parameters.
For security reasons, Relevanssi ignores all query arguments from the parameter string that are not on the allowlist. The allowlist includes the standard WP_Query parameters and a bunch of Relevanssi-specific ones. If you need to use a custom parameter, you can add them to the allowlist with this filter hook.
add_filter( 'relevanssi_query_arg_allowlist', function( $allowlist ) {
$allowlist[] = 'your-parameter';
return $allowlist;
} );