That’s why the last line of the get_admin_url contains the line:
return apply_filters( 'admin_url', $url, $path, $blog_id );
Any valid modification of the admin URL will be via that filter, so get_admin_url is the correct function to use in all cases.
Related Posts:
- How to put placeholder text in the main post input area?
- maintaing consistent layout wordpress dashboard
- Admin – Handle data before creating or updating a post, page or custom post
- How can I replace content in the WP Admin area before an admin page is rendered?
- Disable Auto-Expanding Menu in WordPress Admin Menus
- Best practice for plugin: always detect admin-ajax call?
- modify buddpress adminbar only in admin pages
- redirect word-press page with page values
- Including comments meta box on a plugin page
- How to load library scripts in admin from plugins in noConflict wrapper?
- Show error message after exception handled
- Help writing custom function with rewrite endpoint that generates a page from dynamic content
- Possible to get all posts with my shortcode?
- add_rewrite_rule behaving strangely
- Issue with contextual help overwriting existing content
- Enqueue script globally
- Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins
- How to Move the Comments Bubble to the Right Side of the Toolbar
- How do I add a favicon that only shows during viewing of my plugin’s admin panel?
- Does admin_print_scripts-$hook_suffix work for nested paths to individual files?
- How do I link to a php file in my plugin directory?
- Use ‘get’ form action within a WordPress plugin admin page
- WordPress Admin Login Custom Logo
- How to create custom settings page for custom plugin
- 400 Bad Request, in wordpress theme development, wp_ajax
- How to import the css in the plugin admin area?
- Creating multiple wp_editer() text fields in for loop — the text/visual switch only works for first editor
- Displaying “One Time” Notification in Plugins
- Wp-admin Custom User Management
- Admin Subpages without Menu entry
- HowTo to add my rewrite rules at the beginning, redirect to the right page and flush the rules on plugin activation?
- Create page (not the post type) dynamically
- Filter for admin (back end) ‘reply to’ comment
- Data not insert and update through ajax and jQuery in admin page?
- Catching Form Submission in WordPress Admin Panel
- Redirect in WordPress plugin
- How can I add rewrite rules to a class-based plugin?
- How to add custom view links to wp-admin/post.php?
- Does is_admin() really provide a plugin performance improvement?
- Is it possible to load the css just on my plugin admin page?
- AJAX button with success callback. (Titan Framework)
- jQuery UI tab does not work in the plugin page
- How do I force a download in the admin area?
- Submit form to a different PHP file in the same plugin folder
- configuration of .htaccess for add_rewrite_rule to make sense
- Forward an old url rewrite scheme to a new one?
- Remove Permalink Meta Box not working?
- Rewriting Image URLs from dynamic to original
- How do I duplicate a single post, with all its properties, and save it as a different post?
- Remove Meta-boxes (Yoast SEO plugin) [duplicate]
- Proper way to create an administration page without adding it to the menu
- using admin functions on frontend
- How to add text editor in plugin menu?
- Custom Path for a Plugin
- Get cat parameter from admin-ajax
- check_admin_referer()
- How to make an admin plugin menu page go full screen?
- Custom post type change permalink query
- Google Web Core Vitals – management, how to in wordpress and advice
- WordPress admin panel not working
- Add two button to page and post admin to redirect to : add new & list of (posts – pages) just after saving post or page
- Change cannonical URL after changing url with add_rewrite_rule()
- Add New Button in Admin Panel
- Disabling Yoast, All-in-One, and Rank Math on Certain Pages within a Plugin
- I cant add is_admin control to plugin
- 400 Bad Request and illegal invocation in wp_ajax based on processData set to false or true
- WordPress custom url without using any of the custom tags given
- Change Label of custom post type
- How to create plugin settings page for each admin user?
- Using meta_key & meta_value in add_rewrite_rule
- Stop unauthorised file access
- How to enable or disable check boxes in custom post type
- Redirect with message after admin_post.php
- How to force download a plugin generated file?
- How to pass a more variable with page/subpage in Wordprees URL?
- How to display properly exception or echo string after posting in plugin?
- How to return a blank page
- Same header/footer in Admin, across all network sites in multisite
- Get (eventual) permalink from post within Edit Post in Admin panel
- Adding admin for specific users
- Any way to make Apache’s internal redirect work?
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- How do I control the list of Pages an author can see?
- How to add conent (text) to Add New pages form of admin in WordPress
- Rewriting URLs with a query string
- Issue with iframe in TinyMCE
- What happens when you create/edit a menu
- Forcing ALL plugin Admin menus into a separate menu
- How can I send an id over the url?
- Custom slug in url for CPT and taxonomy
- add_rewrite_rule not working
- Mapping multiple URLs to same page
- Post data in wp-admin to external database
- Use custom clean URLs for a plug in
- admin page passing $_POST variables to itself
- How to Rewrite WordPress URL for a Plugin
- WordPress multiple user roles accessing on their information on one site?
- loop and in admin header problem
- Virtual Page with Registration form
- How to use permalink query to go to specific tabs in posts