WordPress.org

Codex

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

Function Reference/wp list filter

Description

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

Usage

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

Parameters

$list
(array) (required) An array of objects to filter
Default: None
$args
(array) (optional) An array of key => value arguments to match against each object
Default: array()
$operator
(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

(array) 

Change Log

Since: 3.1

Source File

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