# betterdocs/3.8.1/views/admin/docs-ui/classic-partials/author.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 3.8.1. 16 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/3.8.1/code/views/admin/docs-ui/classic-partials/author.php
- Raw: https://pluginprobe.com/plugins/betterdocs/3.8.1/raw/views/admin/docs-ui/classic-partials/author.php
- Modified: 2023-08-14T08:41:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/3.8.1/code/views/admin/docs-ui/classic-partials/author.php#L10-L20`.

```php
<?php
    $author = ( isset( $_GET['author'] ) ) ? $_GET['author'] : '';
    $users  = $helper->get_users( ['role__in' => ['administrator', 'editor', 'author', 'contributor']] );
?>
<select
    id="dashboard-select-author"
    class="dashboard-search-field dashboard-select-author"
    name="author">
    <option value="all"><?php _e( 'All Authors', 'betterdocs' )?></option>
    <?php
        foreach ( $users as $user ) {
            echo betterdocs()->template_helper->option_kses( $user->data->ID, $user->data->display_name, $author );
        }
    ?>
</select>

```
