Files
display-featured-image-genesis/includes/widgets/fields/author-user.php
T
2019-06-26 08:58:16 -04:00

21 lines
415 B
PHP

<?php
$users = get_users(
array(
'who' => 'authors',
)
);
$options = array(
'' => '--',
);
foreach ( $users as $user ) {
$options[ $user->ID ] = $user->data->display_name;
}
return array(
'id' => 'user',
'label' => __( 'Select a user. The email address for this account will be used to pull the Gravatar image.', 'display-featured-image-genesis' ),
'flex' => true,
'choices' => $options,
);