Docs

evf_list_pluck( array $list, int|string $callback_or_field, int|string $index_key = null ): array

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

Return

array Array of values.

Changelog

VersionDescription
1.0.0Introduced.