Created
December 20, 2018 09:23
-
-
Save miniMAC/fb7d664db73cbc3b1dd89d6ad368fc53 to your computer and use it in GitHub Desktop.
Fix WooCommerce orders list bug + WordPress 5.0.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FIX WooCommerce orders list bug | |
function fix_query_args_woo_orders( $query_args ) { | |
if ( isset( $query_args['post_status'] ) && | |
empty( $query_args['post_status'] ) ) { | |
unset( $query_args['post_status'] ); | |
} | |
return $query_args; | |
} | |
add_filter( 'request', 'fix_query_args_woo_orders', 1, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thx!