mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-06-05 15:08:20 +09:00
21 lines
434 B
PHP
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,
|
|
);
|