interface HasQueryFilterInterface (View source)

Represent an object which has a WordPress query filter.

Methods

callable|null
getQueryFilter()

Get the main WordPress query vars filter, if any.

void
setQueryFilter(callable|null $query_filter)

Set the main WordPress query vars filter.

array
applyQueryFilter(RequestInterface $request, array $query_vars)

Apply the query filter, if any.

Details

callable|null getQueryFilter()

Get the main WordPress query vars filter, if any.

Return Value

callable|null

void setQueryFilter(callable|null $query_filter)

Set the main WordPress query vars filter.

Parameters

callable|null $query_filter

Return Value

void

array applyQueryFilter(RequestInterface $request, array $query_vars)

Apply the query filter, if any.

Parameters

RequestInterface $request
array $query_vars

Return Value

array