This is done by wp_admin_canonical_url:
- It calls wp_removable_query_args to fetch a list of query string parameters to remove, which includes
settings-updated
. -
It then writes some script into the page header to use
window.history.replaceState
to remove the query string from your browser’s URL bar.<link id="wp-admin-canonical" rel="canonical" href="http://example.com/wp-admin/admin.php?page=xyz"> <script> if ( window.history.replaceState ) { window.history.replaceState( null, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash ); } </script>
If you want to add your own arguments to the list that gets removed then you can hook removable_query_args.
Related Posts:
- Change order of custom columns for edit panels
- How to create Custom filter options in wp_list_table?
- Fatal error after 4.4 upgrade class-wp-list-table
- How to remove _wp_http_referer from URL when using WP_List_table?
- wp_list_table bulk action button is not working – no submit
- How to handle sql with Custom List Table Example
- WP_list_table add custom row action
- Removing sorting option for columns on the post lists page
- Custom WP_List_Table: How to create an unapproved row?
- Undefined index: hook_suffix
- Accepting certain HTML tags in WP List Table column data
- How to implement WP_List_Table functionality for custom plugins (OR any substitution for wp_list_table plugin) for bulk action
- WP_List_Table bulk actions notice & warning
- Best Alternative to WP List Table
- Inserting Mysql queries into array using wp_list_table class
- Customize WP_List_Table inside admin panel
- `bulk_edit_custom_box` mess the input fields
- Form element deleted from first row of WP_Lists_Table
- upgraded to wp 4.0 – getting convert_to_screen() errors with WP_List_Table
- WP_List_Table default orderby is numeric
- Index of row in WP_List_Table
- How to remove the bottom table headers (column names) in WP_List_Table?
- Create Add New button [closed]
- how to make custom link in wordpress
- Admin Table Filtering not Working for Custom Post Type
- wp_list_table multiple checkboxes
- Strange font-style / font-weight on CPT list columns screen
- How to sort posts without featured images in the WordPress Dashboard? thanks
- WP_List_Table can’t create filter link
- Bulk Action in wp_list_table
- How do I get WordPress to refresh my wp_list_table after bulk_delete
- Passing search query and custom filter to wp_list_table grid
- Unwanted redirection to the article page using WP_LIST_TABLE in the woocommerce_product_data_panels filter
- Sort by last 7 days in post list
- WP_List_Table add custom bulk actions
- Display data in using WP_List_Table
- Sorting columns with aliases
- WP_list_table prepare_items()
- Process bulk actions with POST method – WP_List_Table
- How to use rowspan in WP List Table?
- Custom List Table – Bulk Action – How to remove the _GET parameters
- Annoying “JQMIGRATE: Migrate is…” in console after update to WordPress 4.5
- WP_DEBUG is not set, but I’m still getting warnings
- Custom columns for taxonomy list table
- How to pass parameters to admin_notices?
- Is there anything like admin_notices for front end?
- Plugin API for easy admin list table generation, handling & exporting of MySQL tables?
- How to Change Order of Posts in Admin?
- How do I make an HTML table from a database table?
- How are bulk actions handled in custom list table classes?
- How do I create links at the top of WP_List_table?
- How do I add a WP_List_Table to WordPress page?
- How To Remove These Stuffs From Custom Post Type List Screen?
- Custom Table Column Sortable by Taxonomy Query
- wp_list_tables bulk actions
- How to stop showing admin notice after close button has been clicked
- add_action ‘manage_posts_custom_column’ in a class [closed]
- Sort custom post type list table by display name of a user id stored as post meta value
- get_the_ID() gives notice in 404 page
- Why does my custom taxonomy show a total count across all post types
- How-to implement admin Ajax inside an admin WP_List_Table?
- WP List Table custom quick edit box – post meta data missing and columns change on submit
- Hide php Notices in Dashboard
- List table not rendering when $this->items is filled
- Add content in custom post type page after the title and before columns
- How to Remove Certain Screen Options and Table Columns from post type in wp_list_table?
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- Replace Dashes Before Title in Page List
- wp_list_table search box does not show
- How to customize post edit notices
- How to Arrange Posts by Size in the WordPress Dashboard?
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- Add content before/after admin post wp-list-table
- WP_List_Table Inside Metabox Not Working on Submit
- Searching users with WP_List_Table plugin
- Redirect after deleting post and keep track of pagination
- WordPress admin notice in plugin function
- register_sidebar notice [closed]
- Add custom column at custom posts list
- Custom WP_List_Table displays blank rows
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- List Table API – Safe to use?
- Add custom post notice after post delete
- wp_logout_url() – WordPress Failure Notice
- Custom Post Type or Custom Tables
- Create a clickable name in WP_List_Table for Plugin Admin
- admin_notices after register_uninstall / deactivate_hook
- WP_list_table bulk_action get edit and delete
- Replacing the List table of a Post Type
- How to stop _wpnonce and _wp_http_referer from appearing in URL
- Is it possible to set a option, and then redirect to another page directly from a admin notice link?
- How do I limit the status options for bulk/quick edit to only Published and Draft?
- WordPress admin WP_table_list show incorrectly
- I want to redirect the url to the previous page
- URL Redirect and Bulk Actions in wp_list_table
- How i add new link after Edit | Quick Edit | Trash | View in quick edit section
- How do I fire a snackbar notice in admin?
- How to add a link to the tax term in the admin Edit page?
- Row actions not showing? Why?
- Add search Value to wp_list_table pagination