mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-14 03:56:09 +09:00
Change how authors are retrieved for the author widget/block
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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,
|
||||
);
|
||||
Reference in New Issue
Block a user