Based on wp_list_pluck, this calls a method instead of returning a property.
Parameters
$listarrayrequired- List of objects or arrays.
$callback_or_fieldint|stringrequired- Callback method from the object to place instead of the entire object.
$index_keyint|stringoptional- Field from the object to use as keys for the new array.
Default:
null
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |