Plugin Directory

Changeset 2700301


Ignore:
Timestamp:
03/27/2022 06:47:49 PM (4 years ago)
Author:
kitcartcommerce
Message:

It seems to have issue with orderby Date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kitcart/trunk/kitcart.php

    r2700298 r2700301  
    149149    //route
    150150    $route = 'submit-all-successful-orders';
    151     // get all orders from database
     151    // get all orders from database -- completed and processing
    152152    $args = array(
    153153        'post_type' => 'shop_order',
    154         'post_status' => array('wc-completed', 'wc-processing', 'wc-on-hold', 'wc-pending'),
     154        'post_status' => array('wc-completed', 'wc-processing'),
    155155        'posts_per_page' => -1,
    156         'orderby' => 'date',
    157         'order' => 'DESC',
    158156    );
    159157    $orders = get_posts($args);
Note: See TracChangeset for help on using the changeset viewer.