if the modification is called in the action admin_menu you can come just after, in order to correct the menu with some code like this :
add_action("admin_menu", function () {
$parent_file="parent.php";
$full_url = add_query_arg( 'action', 'action-name', admin_url( 'users.php' ) );
global $submenu;
// searching the last submenu
$last = array_pop($submenu[$parent_file]);
// correcting the URL
$last[2] = $full_url;
// replacing in the array
$submenu[$parent_file][] = $last;
}, 20);
// default priority (used by the plugin) is 10, so I choose 20 to be sur that it comes after the plugin
Related Posts:
- How to export comments in WordPress?
- How can I call a function from one plugin within another plugin?
- Gutenberg disallow certain custom blocks but keep all core blocks?
- Remote upload file to server B
- Publish author posts only with editor approval?
- Replacing Icons in the Dashboard
- Using functions from a plugin in your theme
- Keep one user logged for a year?
- Customizing subject in comment notification e-mails
- WP showing “warning: call_user_func_array()”, What to do?
- Declare a function before plugin does on the theme functions.php file
- Generate Advanced Custom Fields box in custom admin menu page
- How to turn off email you receive when registered?
- Removing user contact methods works from functions.php but not from a plugin
- Execute a function using ajax
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Use functionality of 2 wordpress plugins
- Fatal error: Class not found in
- What’s the point of using WordPress’s built in admin-ajax.php?
- How can i change an image’s author?
- Converting a simple plugin to be placed inside of functions.php
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Showing Co-Authors on post page
- jQuery Plugin to use WordPress functions in AJAX request
- Using plugin functionality in external php script not working
- greatest() function returns undefined property
- Debugging Technique Question re: functions.php
- Override plugin with functions.php
- The Point of Using apply_filters()
- WP Job Manager Category Drop-down; Change Placeholder Text Via Filter
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- How to include code into functions.php file via a plugin
- Custom Taxonomy Tag Search
- Missing argument 3 for wp_register_sidebar_widget()
- Redeclare theme’s function in a plugin
- I have functions in my wordpress plugin. How do I get them to work for me?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- Shortcode button dosent work for all posts. Work for first post only
- Is there a way I can find wordpress posts that don’t contain a word?
- Prevent shortcode from being wrapped in tags
- Change wordpress current_time function to different timezone
- How to Display a Plugin function (content) on frontpage using index.php
- Theme my Login plugin, how to update fields
- Calling plugin function inside custom plugin for onclick event
- Show function to super admin
- get current date + 90 days and checking every day
- How to create an input field, and base the output on spreadsheet data? [closed]
- All sites themes functions.php have been changed
- Customize permalink wordpress category id
- Admin style for just one plugin in dashboard
- Grab WordPress Salt Data From URL
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- bbPress plugin: forum lists not showing in correct order? [closed]
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- How to over-ride a file in a plugin? [closed]
- Overwrite category head title
- execute function after one completed
- WordPress checkbox and Illegal string offset
- Undefined index: action plugin problem
- PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
- How to reset the plugins without deactivate the plugin
- plugins_url() works everywhere but wp_reqister_script()
- Replacing global wp_query
- How to get specific string/value from an array? php [closed]
- WordPress Stock Update Programatically
- 5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)
- Getting a ressource ID, from a WC_Order_Item_Product/Order
- same user role or copy the user role to be same as the other role
- Expected ‘add_filter’ (T_STRING)
- Execute a function when the entire page is displayed
- How can i listing current category and Featured Category post list?
- How to add custom function to pluggable.php
- grab or load text on demand
- sliding/fading header plugin or approach suggestion
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- How would I get the new plugin version on this function?
- Search in WordPress
- Modify function output in a plugin
- Is admin section completely customizable in terms of styling?
- How to make the first letter of a post title uppercase, in a plugin?
- Migrating custom php we wrote from functions.php into a site-specific plugin
- Code fails in plugin file but works in functions.php
- Conditional required fields for WordPress Contact Form 7
- Cannot access variables within a widget
- WordPress plugin options need to delete after deactivate & uninstall
- WordPress function to add text
- Saving an array to get_options
- Doing action based on input from options menu
- Sync roles across several plugins
- How to Allow Users to Select Recipients In a WordPress Comment section?
- How often should I execute add_filter and function declaration in Code Snippets?
- Gravity Forms and Gravity View Permissions
- Product customizing quiz – quiz adding products to the cart
- How to change all the urls of the WordPress site?
- Run a function only once when logging into dashboard
- Event Made Easy – Block registration to two or more events that have the same category
- I want to allow certain file types on dokan upload files
- How to call a logging function from a generic utility plugin from another plguin
- How to get next day date of a specific day
- Simple ajax request with Vanilla JS keeps given 400 Bad Request