Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp list filter


Filters a list of objects, based on a set of key => value arguments.


<?php wp_list_filter$list$args$operator ); ?>


(array) (required) An array of objects to filter
Default: None
(array) (optional) An array of key => value arguments to match against each object
Default: array()
(string) (optional) The logical operation to perform: 'AND' means all elements from the array must match; 'OR' means only one element needs to match; 'NOT' means no elements may match. The default is 'AND'.
Default: AND

Return Values


Change Log

Since: 3.1

Source File

wp_list_filter() is located in wp-includes/functions.php