Sorting order history by date

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19721
    Neal Foster
    Participant

      Hi,

      I’ve been speaking with Oliver regarding this (He’s extremely helpful) but I’m a little out of my depth.

      He’s given me this code to drop into my functions file but I need to come up with the query to sort by today’s date, or, a single date. My takeaway would like to only view orders from that day to save confusion:

      /*** View orders by date on order history page ***/
      add_filter(‘wppizza_filter_orderhistory_ordersquery’, ‘my_query_filter’);
      function my_query_filter($query){
      /* edit/alter the q as required here */
      return $query;
      }

      Any help would be greatly appreciated. I’m sure this will come in useful for some other applications of WP Pizza

      Regards,

      Neal

      #19746
      Olly
      Admin & Mod
      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘Sorting order history by date’ is closed to new replies.