Changeset 52422 for trunk/src/wp-includes/class-wp-list-util.php
- Timestamp:
- 12/29/2021 05:26:26 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-list-util.php
r52066 r52422 10 10 * List utility. 11 11 * 12 * Utility class to handle operations on an array of objects .12 * Utility class to handle operations on an array of objects or arrays. 13 13 * 14 14 * @since 4.7.0 … … 141 141 142 142 /** 143 * Plucks a certain field out of each object in the list.143 * Plucks a certain field out of each element in the input array. 144 144 * 145 145 * This has the same functionality and prototype of … … 148 148 * @since 4.7.0 149 149 * 150 * @param int|string $field Field from the object to place instead of the entire object151 * @param int|string $index_key Optional. Field from the object to use as keys for the new array.150 * @param int|string $field Field to fetch from the object or array. 151 * @param int|string $index_key Optional. Field from the element to use as keys for the new array. 152 152 * Default null. 153 153 * @return array Array of found values. If `$index_key` is set, an array of found values with keys … … 202 202 203 203 /** 204 * Sorts the list,based on one or more orderby arguments.204 * Sorts the input array based on one or more orderby arguments. 205 205 * 206 206 * @since 4.7.0 … … 240 240 241 241 /** 242 * Callback to sort the listby specific fields.242 * Callback to sort an array by specific fields. 243 243 * 244 244 * @since 4.7.0
Note: See TracChangeset
for help on using the changeset viewer.