Modifying the Dashboard
In order to change the links that display here, consider implementing the following code:
function filter_tml_dashboard_links( $links ) { $user = wp_get_current_user(); $role = reset( $user->roles ); if ( empty( $role ) ) { $role = 'subscriber'; } if ( is_super_admin() ) { $role = 'administrator'; } // These links are for authors, editors and admins if ( in_array( $role, array( 'author', 'editor', 'administrator' ) ) ) { $links = array( 'dashboard' => array( 'title' => __( 'Dashboard' ), 'url' => admin_url(), ), 'profile' => array( 'title' => __( 'Profile' ), 'url' => admin_url( 'profile.php' ), ), 'logout' => array( 'title' => __( 'Log Out' ), 'url' => wp_logout_url(), ), ); // These are for all other roles } else { $links = array( 'profile' => array( 'title' => __( 'Profile' ), 'url' => admin_url( 'profile.php' ), ), 'logout' => array( 'title' => __( 'Log Out' ), 'url' => wp_logout_url(), ), ); } return $links; } add_filter( 'tml_dashboard_links', 'filter_tml_dashboard_links' );