Skip to content

Instantly share code, notes, and snippets.

@SiR-DanieL
Created Oct 13, 2016
Embed
What would you like to do?
$foods = array(
array(
'id' => 4,
'name' => 'Banana',
'color' => 'Yellow',
),
array(
'id' => '5',
'name' => 'Apple',
'color' => 'Red',
),
array(
'id' => 2,
'name' => 'Lettuce',
'color' => 'Green',
),
array(
'id' => '7',
'name' => 'Apple',
'color' => 'Red',
),
);
$foods = wp_list_pluck( $foods, 'name' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment