easy-digital-downloads icon indicating copy to clipboard operation
easy-digital-downloads copied to clipboard

3.0 - Add filter to class-list-table get_views args array

Open arraypress opened this issue 3 years ago • 1 comments
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.

arraypress avatar Apr 28 '22 18:04 arraypress

Maybe something like this:

// Args to remove
$remove = apply_filters( 'edd_list_table_remove_query_args', array( 'edd-message', 'status', 'paged', '_wpnonce' ) );

arraypress avatar Apr 28 '22 18:04 arraypress