On this page
WP_List_Util::__construct( array $input )
Constructor.
Description
Sets the input array.
Parameters
$inputarray Required-
Array to perform operations on.
Source
File: wp-includes/class-wp-list-util.php. View all references
public function __construct( $input ) {
$this->output = $input;
$this->input = $input;
}
Related
Used By
| Used By | Description |
|---|---|
| wp_list_sort() wp-includes/functions.php | Sorts an array of objects or arrays based on one or more orderby arguments. |
| wp_filter_object_list() wp-includes/functions.php | Filters a list of objects, based on a set of key => value arguments. |
| wp_list_pluck() wp-includes/functions.php | Plucks a certain field out of each object or array in an array. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_util/__construct