Error: "Call to undefined method WC_Query::is_main_query"