WP_List_Util::filter

Advertisement

Summery Summery

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

Syntax Syntax

WP_List_Util::filter( array $args = array(), string $operator = 'AND' )

Parameters Parameters

$args

(array) (Optional) An array of key => value arguments to match against each object.

Default value: 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.

Default value: 'AND'

Return Return

(array) Array of found values.

Source Source

File: wp-includes/class-wp-list-util.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.