APP_Listing_Form::filter( array $field, array $filters, boolean $include = true )

Helper function to filter out a field based on its attributes.


Package


Description Description


Parameters Parameters

$field

(array) (Required) The field array.

$filters

(array) (Required) The filter array with key/value pairs of field attributes (e.g: 'name' => 'my-custom-field' ).

$include

(boolean) (Optional) Whether to include or exclude field by given filters.

Default value: true


Top ↑

Return Return

(boolean) Retrieves the boolean value set in '$include' if the filter condition is met, opposite value otherwise. Returns TRUE, if empty filters.


Premium WordPress Apps