=== Admin Trim Interface === Contributors: coffee2code Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522 Tags: admin, interface, minimal, customize, coffee2code License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Requires at least: 4.7 Tested up to: 5.1 Stable tag: 3.3 Customize the WordPress admin pages by selectively removing interface elements on a per-user basis. == 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](http://coffee2code.com/wp-plugins/admin-trim-interface/) | [Plugin Directory Page](https://wordpress.org/plugins/admin-trim-interface/) | [GitHub](https://github.com/coffee2code/admin-trim-interface/) | [Author Homepage](http://coffee2code.com) == 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/`) 1. Activate the plugin through the 'Plugins' admin menu in WordPress 1. 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 == = Does this plugin allow for each admin user to customize the admin interface to their individual liking? = No. The settings for the plugin apply to all users within the admin pages and not to each user individually. = Why is the admin dashboard still accessible? = 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. == Screenshots == 1. 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. 3. 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. 5. A screenshot of a fully trimmed admin interface. == Changelog == = 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 = 3.2 (2018-06-15) = * Fix: Show admin notices on plugin's setting page * New: Add basic unit tests * Change: Update plugin framework to 048 * 048: * When resetting options, delete the option rather than setting it with default values * Prevent double "Settings reset" admin notice upon settings reset * 047: * Don't save default setting values to database on install * Change "Cheatin', huh?" error messages to "Something went wrong.", consistent with WP core * Note compatibility through WP 4.9+ * Drop compatibility with version of WP older than 4.7 * 046: * Fix `reset_options()` to reference instance variable `$options` * Note compatibility through WP 4.7+ * Update copyright date (2017) * 045: * Ensure `reset_options()` resets values saved in the database * 044: * Add `reset_caches()` to clear caches and memoized data. Use it in `reset_options()` and `verify_config()`. * Add `verify_options()` with logic extracted from `verify_config()` for initializing default option attributes. * Add `add_option()` to add a new option to the plugin's configuration. * Add filter 'sanitized_option_names' to allow modifying the list of whitelisted option names. * Change: Refactor `get_option_names()`. * 043: * Disregard invalid lines supplied as part of hash option value. * 042: * Update `disable_update_check()` to check for HTTP and HTTPS for plugin update check API URL. * Translate "Donate" in footer message. * Note compatibility through WP 4.5. * 041: * For a setting that is of datatype array, ensure its default value is an array. * Make `verify_config()` public. * Use `
` for input field help text instead of custom styled span. * Remove output of markup for adding icon to setting page header. * Remove styling for .c2c-input-help. * Add braces around the few remaining single line conditionals. * New: Add README.md * New: Add LICENSE file * Change: Give settings checkboxes more width so checkboxes don't always flow below their labels * Change: Improve responsiveness of settings page * Change: Store setting name in constant * Change: Update session expiration error message to sync with one that WP core uses * Change: Switch to outputting markup with `printf()` * Change: (Hardening) Sanitize screenshot URL before output (for future-proofing) * Change: Make legend image's title and alt text translatable * Change: Minor code reformatting * Change: Add GitHub link to readme * Change: Note compatibility through WP 4.9+ * Change: Drop compatibility with versions of WP older than 4.7 * Change: Update copyright date (2018) * Change: Update installation instruction to prefer built-in installer over .zip file * Change: Fix changelog entry for v3.1 for proper rendering in Plugin Directory = 3.1 (2016-01-14) = Highlights: * This release adds support for language packs and has many minor behind-the-scenes changes. Details: * Change: Update plugin framework to 040: * Change class name to c2c_AdminTrimInterface_Plugin_040 to be plugin-specific. * Set textdomain using a string instead of a variable. * Don't load textdomain from file. * Change admin page header from 'h2' to 'h1' tag. * Add `c2c_plugin_version()`. * Formatting improvements to inline docs. * Change: Add support for language packs: * Set textdomain using a string instead of a variable. * Remove .pot file and /lang subdirectory. * Change: Declare class as final. * Add: Create empty index.php to prevent files from being listed if web server has enabled directory listings. * Change: Note compatibility through WP 4.4+. * Change: Update copyright date (2016). _Full changelog is available in [CHANGELOG.md](https://github.com/coffee2code/admin-trim-interface/blob/master/CHANGELOG.md)._ == Upgrade Notice == = 3.3 = Minor update: tweaked plugin initialization, updated plugin framework to v049, noted compatibility through WP 5.1+, created CHANGELOG.md to store historical changelog outside of readme.txt, and updated copyright date (2019). = 3.2 = Minor update: improved responsiveness of settings page; fixed to show admin notices on settings page; added unit tests; updated plugin framework to v048; compatibility is now WP 4.7-4.9; updated copyright date (2018); added README.md; and more. = 3.1 = Minor update: improved support for localization; verified compatibility through WP 4.4; updated copyright date (2016) = 3.0 = Recommended update: Updated trim capabilities to be WP 4.1 compatible; dropped pre-WP 3.8 support; updated plugin framework. = 2.2 = Recommended update: Updated trim capabilities to be WP 3.3 compatible; minor bugfix; dropped pre-WP 3.1 support; updated plugin framework. = 2.1 = Recommended update. Update trim capabilities to be WP 3.2 compatible; improved interface trimming techniques; dropped support for versions of WP older than 3.0; updated plugin framework; and more. = 2.0.3-= Recommended bugfix release: fixed bug introduced in previous release. = 2.0.2 = Minor release: updated underlying plugin framework; noted compatibility with WP 3.1+ and updated copyright date. = 2.0.1 = Minor bugfix update of underlying plugin framework. = 2.0 = Recommended update! This release fixes WP 3.0 compatibility. It also includes major re-implementation, bug fixes, localization support, and more.