admin-site-enhancements
Last commit date
assets
3 years ago
classes
3 years ago
vendor
3 years ago
LICENSE.md
3 years ago
README.md
3 years ago
admin-site-enhancements.php
3 years ago
bootstrap.php
3 years ago
settings.php
3 years ago
README.md
187 lines
| 1 | # Admin and Site Enhancements |
| 2 | |
| 3 | Contributors: qriouslad |
| 4 | Donate link: https://paypal.me/qriouslad |
| 5 | Tags: enhancements, tweaks, optimizations, tools |
| 6 | Requires at least: 4.6 |
| 7 | Tested up to: 6.1 |
| 8 | Stable tag: 2.7.0 |
| 9 | Requires PHP: 5.6 |
| 10 | License: GPLv2 or later |
| 11 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 12 | |
| 13 |  |
| 14 | |
| 15 | Duplicate page / post, replace media, hide login, hide admin notices, hide admin bar, login / logout / 404 redirect, and more in a single plugin. |
| 16 | |
| 17 | ## Description |
| 18 | |
| 19 | Admin and Site Enhancements helps you to easily enhance various admin workflows and site aspects while replacing multiple plugins doing it. |
| 20 | |
| 21 | ### Content Management |
| 22 | |
| 23 | * **Enable Page and Post Duplication**. Enable one-click duplication of pages, posts and custom posts. The corresponding taxonomy terms and post meta will also be duplicated. |
| 24 | * **Enable Media Replacement**. Easily replace any type of media file with a new one while retaining the existing media ID, publish date and file name. So, no existing links will break. |
| 25 | * **Enable SVG Upload**. Allow some or all user roles to upload SVG files, which will then be sanitized to keep things secure. |
| 26 | * **Enhance List Tables**. Improve the usefulness of listing pages of various post types by adding / removing columns and elements. |
| 27 | * _Show the featured image column_: in the list tables for pages and post types that support featured images. |
| 28 | * _Show the excerpt column_: in the list tables for pages and post types that support excerpt. |
| 29 | * _Show the ID column_: in the list tables for pages, all post types, all taxonomies, media, users and comments. |
| 30 | * _Remove the comments column_: in in the list tables for pages, post types that support comments, and alse media/attachments. |
| 31 | * _Remove the post tags column_: in the list table for posts. |
| 32 | * _Show custom taxonomy dropdown filter(s)_: on the list tables of all post types for taxonomies that are hierarchical like post categories. |
| 33 | |
| 34 | ### Admin Interface |
| 35 | |
| 36 | * **Hide Admin Notices**. Clean up admin pages by moving notices into a separate panel easily accessible via the admin bar. |
| 37 | * **View Admin as Role**. View admin pages and the site (logged-in) as one of the non-administrator user roles. |
| 38 | * **Admin Menu Organizer**. Customize the order of the admin menu and optionally hide some items. |
| 39 | * **Clean Up Admin Bar**. Remove various elements from the admin bar. |
| 40 | * Remove WordPress logo/menu |
| 41 | * Remove customize menu/link |
| 42 | * Remove updates counter/link |
| 43 | * Remove comments counter/link |
| 44 | * Remove new content menu |
| 45 | * Remove 'Howdy' text |
| 46 | * **Hide Admin Bar**. Hide it on the front end for all or some user roles. |
| 47 | |
| 48 | ### Disable Components |
| 49 | |
| 50 | * **Disable Comments**. Disable comments for some or all public post types. When disabled, existing comments will also be hidden on the frontend. |
| 51 | |
| 52 | ### Security |
| 53 | |
| 54 | * **Change Login URL**. Improve site security by using a custom login URL, e.g. www.example.com/backend |
| 55 | * **Limit Login Attempts**. Prevent brute force attacks by limiting the number of failed login attempts allowed per IP address. |
| 56 | * **Obfuscate Author Slugs**. Obfuscate publicly exposed author page URLs that shows the user slugs / usernames, e.g. _sitename.com/author/username1/_ into _sitename.com/author/a6r5b8ytu9gp34bv/_, and output 404 errors for the original URLs. Also obfuscates in _/wp-json/wp/v2/users/_ REST API endpoint. |
| 57 | * **Disable XML-RPC**. Protect your site from brute force, DOS and DDOS attacks via XML-RPC. Also disables trackbacks and pingbacks. |
| 58 | |
| 59 | ### Utilities |
| 60 | |
| 61 | * **Enable Custom Admin CSS**. Add custom CSS on all admin pages for all user roles. |
| 62 | * **Enable Custom Frontend CSS**. Add custom CSS on all frontend pages for all user roles. |
| 63 | * **Redirect After Login / Logout**. Set custom redirect URL for all or some user roles after login / logout. |
| 64 | * **Redirect 404 to Homepage**. Perform 301 (permanent) redirect to the homepage for all 404 (not found) pages. |
| 65 | |
| 66 | Admin and Site Enhancements will include more enhancements, tweaks and useful features in future versions. Please [](https://wordpress.org/support/plugin/admin-site-enhancements/give feedback](https://wordpress.org/support/plugin/admin-site-enhancements/](https://wordpress.org/support/plugin/admin-site-enhancements/) on must-have plugins or code snippets you enable on sites that you manage, and the functionalities will be considered for inclusion as well. |
| 67 | |
| 68 | ### Give Back |
| 69 | |
| 70 | * [](https://wordpress.org/plugins/admin-site-enhancements/#reviewsA nice review](https://wordpress.org/plugins/admin-site-enhancements/#reviews](https://wordpress.org/plugins/admin-site-enhancements/#reviews) would be great! |
| 71 | * [](https://wordpress.org/support/plugin/admin-site-enhancements/Give feedback](https://wordpress.org/support/plugin/admin-site-enhancements/](https://wordpress.org/support/plugin/admin-site-enhancements/) and help improve future versions. |
| 72 | * [](https://github.com/qriouslad/admin-site-enhancementsGithub repo](https://github.com/qriouslad/admin-site-enhancements](https://github.com/qriouslad/admin-site-enhancements) to contribute code. |
| 73 | * [](https://paypal.me/qriousladDonate](https://paypal.me/qriouslad](https://paypal.me/qriouslad) and support my work. |
| 74 | |
| 75 | ### Check These Out Too |
| 76 | |
| 77 | * [](https://wordpress.org/plugins/system-dashboard/System Dashboard](https://wordpress.org/plugins/system-dashboard/](https://wordpress.org/plugins/system-dashboard/): Central dashboard to monitor various WordPress components, processes and data, including the server. |
| 78 | * [](https://wordpress.org/plugins/debug-log-manager/Debug Log Manager](https://wordpress.org/plugins/debug-log-manager/](https://wordpress.org/plugins/debug-log-manager/): Log PHP, database and JavaScript errors via WP_DEBUG with one click. Conveniently create, view, filter and clear the debug.log file. |
| 79 | * [](https://wordpress.org/plugins/variable-inspector/Variable Inspector](https://wordpress.org/plugins/variable-inspector/](https://wordpress.org/plugins/variable-inspector/): Inspect PHP variables on a central dashboard in wp-admin for convenient debugging. |
| 80 | * [](https://wordpress.org/plugins/code-explorer/Code Explorer](https://wordpress.org/plugins/code-explorer/](https://wordpress.org/plugins/code-explorer/): Fast directory explorer and file/code viewer with syntax highlighting. |
| 81 | * [](https://wordpress.org/plugins/flexible-scroll-top/Flexible Scroll Top](https://wordpress.org/plugins/flexible-scroll-top/](https://wordpress.org/plugins/flexible-scroll-top/) and [](https://wordpress.org/plugins/floating-share-button/Floating Share Buttons](https://wordpress.org/plugins/floating-share-button/](https://wordpress.org/plugins/floating-share-button/) is a lightweight combo with minimalist UI. |
| 82 | |
| 83 | ## Screenshots |
| 84 | |
| 85 | 1. Content Management |
| 86 |  |
| 87 | 2. Admin Interface |
| 88 |  |
| 89 | 3. Disable Components |
| 90 |  |
| 91 | 4. Security |
| 92 |  |
| 93 | 5. Utilities |
| 94 |  |
| 95 | |
| 96 | ## Frequently Asked Questions |
| 97 | |
| 98 | ### Why build this plugin? |
| 99 | |
| 100 | Hoping that this is useful in reducing the number of plugins we install the first time we set up a site. |
| 101 | |
| 102 | ## Changelog |
| 103 | |
| 104 | ### 2.7.0 (2022.11.27) |
| 105 | |
| 106 | * **[ADDED] Disable Components >> Disable Comments**: Disable comments for some or all public post types. When disabled, existing comments will also be hidden on the frontend. |
| 107 | * **[CHANGED] Security >> Limit Login Attempts**: Improved styling of empty datatable, i.e. when there is no failed login attempts logged. |
| 108 | * **[CHANGED] Settings tab position** is now saved to browser cookie, so it persists upon saving changes or revisiting it from elsewhere in wp-admin. |
| 109 | * **[CHANGED] Some code refactoring** to make logical separation and categorization of features clearer. CodeMirror and DataTables assets loading are also moved |
| 110 | |
| 111 | ### 2.6.0 (2022.11.19) |
| 112 | |
| 113 | * **[ADDED] Content Management >> Enable SVG Upload**: Allow some or all user roles to upload SVG files, which will then be sanitized to keep things secure. |
| 114 | |
| 115 | ### 2.5.0 (2022.11.18) |
| 116 | |
| 117 | * **[ADDED] Security >> Limit Login Attempts**: Prevent brute force attacks by limiting the number of failed login attempts allowed per IP address. |
| 118 | * **[CHANGED] Security >> Custom Login URL** feature has been made compatible with Limit Login Attempts feature. |
| 119 | * **[CHANGED] Security >> Change Login URL** now works with the interim login modal window, the one that pops up when user is logged out in the background. |
| 120 | * **[CHANGED] Security >> Change Login URL** adds another process to ensure user is redirected to the dashboard after successful login. It was redirecting to the /not_found/ (404) page in rare occasions as [](https://wordpress.org/support/topic/change-login-url-redirects-to-not-found/reported by @vdrover](https://wordpress.org/support/topic/change-login-url-redirects-to-not-found/](https://wordpress.org/support/topic/change-login-url-redirects-to-not-found/). |
| 121 | * **[CHANGED] Utilities >> Redirect After Login** will correctly override default login redirection by Change Login URL. |
| 122 | * **[CHANGED] Improve code comments throughout**. |
| 123 | |
| 124 | ### 2.4.0 (2022.11.10) |
| 125 | |
| 126 | * **[ADDED] Utilities >> Enable Custom Frontend CSS**: Add custom CSS on all frontend pages for all user roles. |
| 127 | |
| 128 | ### 2.3.0 (2022.11.09) |
| 129 | |
| 130 | * **[ADDED] Utilities >> Enable Custom Admin CSS**: Add custom CSS on all admin pages for all user roles. |
| 131 | |
| 132 | ### 2.2.0 (2022.11.09) |
| 133 | |
| 134 | * **[ADDED] Security >> Disable XML-RPC**: Protect your site from brute force, DOS and DDOS attacks via XML-RPC. Also disables trackbacks and pingbacks. |
| 135 | * **[ADDED] Expand/collapse toggle** for feature settings that takes up longer vertical space, e.g. Admin Menu Customizer. |
| 136 | * **[CHANGED] Refactor code around plugin settings page**. Now uses separate classes for sections and fields registration, for sanitization of field values and for rendering the fields on the admin page. |
| 137 | |
| 138 | ### 2.1.0 (2022.11.08) |
| 139 | |
| 140 | * **[ADDED] Security >> Obfuscate Author Slugs**: Obfuscate publicly exposed author page URLs that shows the user slugs / usernames, e.g. _sitename.com/author/username1/_ into _sitename.com/author/a6r5b8ytu9gp34bv/_, and output 404 errors for the original URLs. Also obfuscates in _/wp-json/wp/v2/users/_ REST API endpoint. Props to [](https://github.com/qriouslad/admin-site-enhancements/pull/1pull request](https://github.com/qriouslad/admin-site-enhancements/pull/1](https://github.com/qriouslad/admin-site-enhancements/pull/1) from [](https://github.com/wahyuiefWahyu Arief @wahyuief](https://github.com/wahyuief](https://github.com/wahyuief) and [](https://plugins.trac.wordpress.org/browser/smart-user-slug-hider/tags/4.0.2/inc/class-smart-user-slug-hider.phpfunctions](https://plugins.trac.wordpress.org/browser/smart-user-slug-hider/tags/4.0.2/inc/class-smart-user-slug-hider.php](https://plugins.trac.wordpress.org/browser/smart-user-slug-hider/tags/4.0.2/inc/class-smart-user-slug-hider.php) from [Smart User Slug Hider |
| 141 | ](https://wordpress.org/plugins/smart-user-slug-hider/). |
| 142 | |
| 143 | ### 2.0.0 (2022.11.06) |
| 144 | |
| 145 | * **[ADDED] Admin Interface >> Admin Menu Organizer**: Customize the order of the admin menu and optionally hide some items. |
| 146 | |
| 147 | ### 1.9.0 (2022.11.03) |
| 148 | |
| 149 | * **[ADDED] Admin Interface >> Hide or Modify Elements**: Easily simplify or customize various admin UI elements, starting with the admin bar. |
| 150 | * **[CHANGED] Content Management >> Enhance List Tables**: this combines previously separate features related to list tables for various post types. |
| 151 | |
| 152 | ### 1.8.0 (2022.11.03) |
| 153 | |
| 154 | * **[ADDED] Admin Interface >> View Admin as Role**: View admin pages and the site (logged-in) as one of the non-administrator user roles. |
| 155 | |
| 156 | ### 1.7.0 (2022.10.31) |
| 157 | |
| 158 | * **[ADDED] Utilities >> Redirect 404 to Homepage**: Perform 301 (permanent) redirect to the homepage for all 404 (not found) pages. |
| 159 | |
| 160 | ### 1.6.0 (2022.10.31) |
| 161 | |
| 162 | * **[ADDED] Utilities >> Redirect After Logout**: Set custom redirect URL for all or some user roles after logout. |
| 163 | |
| 164 | ### 1.5.0 (2022.10.30) |
| 165 | |
| 166 | * **[ADDED] Utilities >> Redirect After Login**: Set custom redirect URL for all or some user roles after login. |
| 167 | |
| 168 | ### 1.4.0 (2022.10.30) |
| 169 | |
| 170 | * **[ADDED] Security >> Change Login URL**: allow for setting a custom login URL to improve site security. |
| 171 | |
| 172 | ### 1.3.0 (2022.10.29) |
| 173 | |
| 174 | * **[ADDED] Admin Interface >> Hide Admin Bar**: Hide it on the front end for all or some user roles. |
| 175 | |
| 176 | |
| 177 | ### 1.2.0 (2022.10.28) |
| 178 | |
| 179 | * **[ADDED] Admin Interface >> Hide Admin Notices**: Clean up admin pages by moving notices into a separate panel easily accessible via the admin bar. |
| 180 | |
| 181 | ### 1.1.0 (2022.10.22) |
| 182 | |
| 183 | * **[ADDED] Content Management >> Enable Media Replacement**: Enable easy replacement of any type of media file with a new one while retaining the existing media ID and file name. |
| 184 | |
| 185 | ### 1.0.0 (2022.10.17) |
| 186 | |
| 187 | * Initial stable release. |