Set empty options for CPT/author blocks

This commit is contained in:
Robin Cornett
2019-06-26 08:58:16 -04:00
parent 031c05c47b
commit f7fd26c803
4 changed files with 15 additions and 3 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ $users = get_users(
'who' => 'authors',
)
);
$options = array();
$options = array(
'' => '--',
);
foreach ( $users as $user ) {
$options[ $user->ID ] = $user->data->display_name;
}