You can try this modification to your code snippet:
function add_post_format_filter_to_posts( $query ) {
global $post_type, $pagenow;
// if we are currently on the edit screen of the post type listings
if ( is_admin()
&& $pagenow == 'edit.php'
&& $post_type == 'shop_order'
&& ! filter_input( INPUT_GET, 'filter_action' ) // <-- We add this check
&& ! filter_input( INPUT_GET, 'post_status' ) // <-- and this one
)
{
$query->set( 'date_query',
array(
array(
'column' => 'post_date_gmt',
'after' => '1 days ago',
)
)
);
}
}
add_action( 'pre_get_posts', 'add_post_format_filter_to_posts' );
where we only do the query filtering when the GET parameters filter_action and post_status aren’t set.