How can I get the order through which the query is done?
For example, my woocommerce product archive page is querying by ordering according to the order_by select box (as seen below).
How can I get what my posts are ordered by?
For example, if it's default sorting, I want to know. If it's by popularity, I want to know. If it's by newness, I want to know.