Title: WP_List_Util::__construct
Published: December 7, 2016
Last modified: April 28, 2025

---

# WP_List_Util::__construct( array $input )

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#wp--skip-link--target)

Constructor.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#description)󠁿

Sets the input array.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#parameters)󠁿

 `$input`arrayrequired

Array to perform operations on.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#source)󠁿

    ```php
    public function __construct( $input ) {
    	$this->output = $input;
    	$this->input  = $input;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-list-util.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-list-util.php#L51)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-list-util.php#L51-L54)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_list_sort()](https://developer.wordpress.org/reference/functions/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()](https://developer.wordpress.org/reference/functions/wp_filter_object_list/)`wp-includes/functions.php` |

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

  | 
| [wp_list_pluck()](https://developer.wordpress.org/reference/functions/wp_list_pluck/)`wp-includes/functions.php` |

Plucks a certain field out of each object or array in an array.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_list_util/__construct/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.7.0](https://developer.wordpress.org/reference/since/4.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_list_util%2F__construct%2F)
before being able to contribute a note or feedback.