| 1 |
<?php |
| 2 |
$author = ( isset( $_GET['author'] ) ) ? $_GET['author'] : ''; |
| 3 |
$users = $helper->get_users( ['role__in' => ['administrator', 'editor', 'author', 'contributor']] ); |
| 4 |
?> |
| 5 |
<select |
| 6 |
id="dashboard-select-author" |
| 7 |
class="dashboard-search-field dashboard-select-author" |
| 8 |
name="author"> |
| 9 |
<option value="all"><?php _e( 'All Authors', 'betterdocs' )?></option> |
| 10 |
<?php |
| 11 |
foreach ( $users as $user ) { |
| 12 |
echo betterdocs()->template_helper->option_kses( $user->data->ID, $user->data->display_name, $author ); |
| 13 |
} |
| 14 |
?> |
| 15 |
</select> |
| 16 |
|