trait HasQueryFilterTrait (View source)

Represent an object which has a WordPress query filter attribute.

Methods

mixed
getAttribute(string $attribute, mixed $default = '')

Get attribute.

array
applyQueryFilter(RequestInterface $request, array $query_vars)

Apply the query filter, if any.

Details

abstract mixed getAttribute(string $attribute, mixed $default = '')

Get attribute.

Parameters

string $attribute
mixed $default

Return Value

mixed

array applyQueryFilter(RequestInterface $request, array $query_vars)

Apply the query filter, if any.

Parameters

RequestInterface $request
array $query_vars

Return Value

array