Files
display-featured-image-genesis/includes/widgets/fields/author-user.php
T
2023-03-26 18:35:52 -04:00

21 lines
434 B
PHP

<?php
$users = get_users(
array(
'capability' => array( 'edit_posts' ),
)
);
$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,
);