Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'pre_get_posts', 'wc_shop_order_status_backwards_compatibility' );
- function wc_shop_order_status_backwards_compatibility( $q ) {
- if ( $q->is_main_query() ) {
- return;
- }
- //...and it goes on
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement