easy-digital-downloads
easy-digital-downloads copied to clipboard
3.0 - Add filter to class-list-table get_views args array
trafficstars
Bug Report
Expected behavior
Using the newly added filter for payment table order args, it should be possible to remove that query arg from the URL that are added via third-party filters.
Actual behavior
On the base class-list-table.php the args are set like this:
$remove = array( 'edd-message', 'status', 'paged', '_wpnonce' );
It would be useful to have these passed in as an array, that way new ones can be added easily to remove/filter. Similarly on the payment table, the "clear" button could be filterable also.
Maybe something like this:
// Args to remove
$remove = apply_filters( 'edd_list_table_remove_query_args', array( 'edd-message', 'status', 'paged', '_wpnonce' ) );