Categories

Admin Trim Interface

Author: Scott Reilly
Version: 3.4
First released: 2009-07-29
Last update: 2020-06-28
Compatibility: WP 4.9 – 5.4.2
Download: [ zip ]
Description:

Customize the WordPress admin pages by selectively removing interface elements on a per-user basis.

Extended Description

This plugin uses a combination of WordPress hooks, CSS (when possible), and Javascript (last resort) to removed specified admin interface elements. These elements may be considered by some to be superfluous interface elements that are undesired for one reason or another, so this plugin aids in their visual removal.

Each admin interface element is individually selected for removal. The elements that can be removed are:

  • The header WordPress logo (bear in mind this functions as a menu) in the admin bar
  • The home icon next to your site’s name in the admin bar
  • The “Howdy,” greeting before your username in the admin bar
  • Your username link to your profile in the admin bar
  • Your avatar in the admin bar
  • The Dashboard menu link in the sidebar
  • The contextual “Help” link
  • The footer links
  • The WordPress version in the footer

(There is an associated screenshot which points out these different sections.)

Note: These settings are global and will affect all users who are able to visit the admin pages.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

Find out more at the plugin’s WordPress Plugin Repository page.

Screenshots

Click to see full-size image.

  1. A image identifying the different elements of the admin interface that can be selectively disabled by the plugin.

    A image identifying the different elements of the admin interface that can be selectively disabled by the plugin.

  2. An image of the user section of the admin bar when "Howdy" and the username is hidden, leaving only the avatar.

    An image of the user section of the admin bar when “Howdy” and the username is hidden, leaving only the avatar.

  3. An image of the user section of the admin bar when "Howdy" and the avatar is hidden, leaving only the username.

    An image of the user section of the admin bar when “Howdy” and the avatar is hidden, leaving only the username.

  4. A screenshot of the plugin's admin settings page.

    A screenshot of the plugin’s admin settings page.

  5. A screenshot of a fully trimmed admin interface.

    A screenshot of a fully trimmed admin interface.

Installation

  1. Install via the built-in WordPress plugin installer. Or download and unzip admin-trim-interface.zip inside the plugins directory for your site (typically wp-content/plugins/)
  2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
  3. Click the plugin’s ‘Settings’ link next to its ‘Deactivate’ link (still on the Plugins page), or click on the ‘Appearance’ -> ‘Admin Trim Interface’ link, to go to the plugin’s admin settings page. Customize the settings to selectively remove admin interface elements.

Frequently Asked Questions

Q. Does this plugin allow for each admin user to customize the admin interface to their individual liking?
A. No. The settings for the plugin apply to all users within the admin pages and not to each user individually.

Q. Why is the admin dashboard still accessible?
A. This plugin does not prevent access to the admin dashboard; it merely provides the ability to hide the admin sidebar menu button that leads to the admin dashboard.

Release Log

3.4 (2020-06-27)

  • New: Add ability to trim “My Sites” icon in admin bar
  • New: Add HTML5 compliance by omitting type attribute when the theme supports ‘html5’
  • Change: Prevent output of plugin-page specific CSS elsewhere
  • Change: Discontinue handling for contextual help text added via deprecated filter contextual_help
  • Change: Update plugin framework to 050
    • Allow a hash entry to literally have ‘0’ as a value without being entirely omitted when saved
    • Output donation markup using printf() rather than using string concatenation
    • Update copyright date (2020)
    • Note compatibility through WP 5.4+
    • Drop compatibility with version of WP older than 4.9
  • New: Add TODO.md and move existing TODO list from top of main plugin file into it
  • Change: Refactor handling of dynamic CSS rules and ensure they output properly indented
  • Change: Adjust some CSS formatting (add second colon for ::before and spaces around >)
  • Change: Adjust output spacing for CSS
  • Change: Note compatibility through WP 5.4+
  • Change: Drop compatibility for version of WP older than 4.9
  • Change: Add missing text domain from a few string translation calls
  • Change: Remove unnecessary numbering of sole placeholder in string
  • Change: Update links to coffee2code.com to be HTTPS
  • Change: Update legend image
  • Change: Update screenshot images
  • Unit tests:
    • New: Add tests for add_css(), admin_init(), explain_nonce(), show_admin_notices(), show_legend_image()
    • New: Add test for setting name
    • New: Add helper set_current_screen() for setting the current screen, defaulting to plugin’s setting page
    • Change: Store plugin instance in test object to simplify referencing it
    • Change: Update tests for default hooks, removing a duplicate and adding 2 that were missing
    • Change: Use HTTPS for link to WP SVN repository in bin script for configuring unit tests (and delete commented-out code)

3.3.1 (2019-12-16)

  • Unit tests:
    • Change: Update unit test install script and bootstrap to use latest WP unit test repo
    • New: Add test that plugin initializes itself on plugins_loaded
  • Change: Note compatibility through WP 5.3+
  • Change: Update copyright date (2020)

3.3 (2019-04-06)

  • Change: Initialize plugin on plugins_loaded action instead of on load
  • Change: Update plugin framework to 049
    • 049:
    • Correct last arg in call to add_settings_field() to be an array
    • Wrap help text for settings in label instead of p
    • Only use label for help text for checkboxes, otherwise use p
    • Ensure a textarea displays as a block to prevent orphaning of subsequent help text
    • Note compatibility through WP 5.1+
    • Update copyright date (2019)
  • New: Add CHANGELOG.md file and move all but most recent changelog entries into it
  • Change: Note compatibility through WP 5.1+
  • Change: Update copyright date (2019)
  • Change: Update License URI to be HTTPS
  • Change: Split paragraph in README.md’s “Support” section into two

Copyright & Disclaimer

Copyright © 2009-2020 by Scott Reilly (aka coffee2code)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Discussion / Support

Have any questions, comments, or suggestions? Please provide them via the plugin’s WordPress.org support forum. I’ll do my best to reply in a timely fashion and help as best I can.

Unfortunately, I cannot provide guaranteed support, nor do I provide support via any other means.

Was this plugin useful useful to you? Consider giving it a rating. If you’re inclined to give it a poor rating, please first post to the support forum to give me a chance to address or explain the situation.

4 replies on “Admin Trim Interface”