checks woo version 

checks woocommerce version and set right  post status in query