mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
19 lines
401 B
PHP
19 lines
401 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,
|
|
);
|