'nicename', 'order' => 'ASC', 'who' => 'authors' ) ); $admins = array(); if ( isset( $_REQUEST['authorarchive-tab'] ) && 'admins' == $_REQUEST['authorarchive-tab'] ) { $current_tab = 'admins'; }elseif ( isset( $_REQUEST['authorarchive-tab'] ) && 'all' == $_REQUEST['authorarchive-tab'] ) { $current_tab = 'all'; } /* set values to required item properties */ foreach ( $authors as &$author ) { $author->classes = array(); $author->type = 'custom'; $author->object_id = $author->ID; $author->title = $author->nickname . ' - ' . implode(', ', $author->roles); $author->object = 'custom'; $author->url = get_author_posts_url( $author->ID ); $author->attr_title = $author->displayname; if( $author->has_cap( 'edit_users' ) ){ $admins[] = $author; } } $removed_args = array( 'action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce' ); ?>

class="button-secondary submit-add-to-menu right" value="" name="add-authorarchive-menu-item" id="submit-authorarchive" />