I have hidden that in this answer, so I duplicate it here as a separate solution:
<?php # -*- coding: utf-8 -*-
/* Plugin Name: No admin short URLs */
remove_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );
Related Posts:
- Admin Page Redirect
- stop redirection on /wp-admin call to /wp-login
- Login to wp-admin “redirect_to” points to wrong URL after migration
- Redirect users away from Admin breaks ajax
- redirect to a dedicated sign in page
- Unable to properly login
- Redirect WordPress login for customers but not admin
- WP site after login keeps redirecting to looped url [closed]
- Redirecting the user to the admin table area after publishing a post, getting an invalid response error?
- Changing Admin Menu Labels
- Is there ANY way to remove comments function and section totally?
- Unit testing in the WordPress backend (is_admin() is true)
- How to display a static HTML page while setting up a WordPress site?
- How can I uninstall a language?
- How can I improve the line break handling in the WYSIWYG editor?
- How do I change the login logo URL and hover title?
- js error on post editing page
- How to add a custom metabox to the Menu Management admin screen?
- How to change the wording in wp-admin back-end?
- How to make ajax call in wordpress in right way?
- Delete Post From front Page ( With Wp-admin restriction )
- Only allow administrators and editors to access wp-admin
- Bulk Delete Users Error uri too large
- Can you change the main heading of a page in the WordPress admin (without output buffering or JavaScript)?
- Add column to pages table
- How to get the password and username of the add new user form (admin back end) in wordpress
- Change the Return URL from the Customizer
- Where can I edit Admin Panel Page file
- Replace wordpress login logo with custom text
- What is an “Options Framework” for WordPress
- Failed to load resource admin-ajax.php
- Additionally added URL params leading to “Invalid post type.” in the Admin Panel
- Custom WordPress Dashboard for Specific user role
- Why are my frontend theme styles bleeding into the backend?
- 404 of wp-admin pages [closed]
- Execute script only on certain admin pages
- Uncheck the box “Send User Notification” by default on new-user.php
- Detecting all admins that are logged in
- WordPress Options Page not working
- Sortable columns and admin like interface for tables/report in custom plugin?
- Remove favorites action menu and screen options panel
- No access local wordpress website after PC formating
- is_admin() not working when updating a post in the admin panel
- Why is server preventing admin styles? (Was: Where are WordPress sessions saved?)
- An update has caused my client’s site to be non-existent after new update of WordPress [closed]
- White screen of death in Dashboard after clean installation
- WordPress (admin) posts search GET request filter
- How can I replace dashboard.css and dashboard.min.css (not add new css)
- White screen of death for wp-admin and error for wp-login.php after entering credentials
- ‘wp’ hook supposed to trigger when editing a post?
- How to remove dashboard access (wp-admin) for author but not disable the capabilities?
- always by default show welcome panel in the dashboard
- Add and Remove Row Actions in an Existing WP_List_Table
- Dashboard Widget CSS
- can’t access backend while frontend works perfect
- Admin top level menu, pointing to an external url
- How to add Extra Column of post Status in All post page
- Change of IP Address
- Developer/Designer asking for admin access
- WordPress Child theme fails to override parent theme css
- How to change home page only in WordPress
- User Roles: How to hide a plugin from showing in WP-Admin?
- Too Many Redirects – WP-Admin Only
- Admin menu success message
- Pages section (only) not loading after publishing large number of pages
- Wp-admin widgets have no title texts
- Users can login to Website from wp-admin prior to confirmation email
- wp-admin 503 error
- Admin Page access
- Add HTML to custom post type edit page
- Locked out of site admin after change of URL
- Login issue with subdomain installs
- Redirect from wp-admin back to page
- WordPress Redirects to a cancelled domain, need to change it but can’t get to the admin portal
- WordPress Admin Login Issue
- Edit “Not Available” Page
- admin-ajax and external service interaction
- Add admin page to the top of the admin panel
- Admin page changes the $_POST data
- site identity will not update [closed]
- Remove menu item dashboard for a unique user
- Reestablishing Automatic and Secure FTP Connection, Primary Domain Change
- str_replace in wp-admin
- Admin area is not loading properly
- WordPress logged in but no access to wp-admin
- Changed the path to wp-login and now can’t access WPress dashboard
- Why my login panel has a wrong language?
- Using meta_query in add_query_arg
- Mixed content and expired session issues with SSL and wp-admin
- Limit access to wp-admin but still be able to log in from different locations?
- Is it possible to change the images source that are shown in the admin side?
- Using query string on edit CPT page
- How to Filter in the “Add Media Popup” to show only “unattached” Media
- Working with post values in the admin panel
- wordpress login blank screen [closed]
- wp-admin blank page after admin login and all security off
- Can a wordpress admin see my failed Login attempts?
- My website does not load since two days!
- What methods are you using to transfer individual WP site components from one site to another?
- how to Hide all products except the General Manager role in the WordPress admin panel?