最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - get orders of today's date

programmeradmin0浏览0评论

I'm trying to get all the orders of the current date as the product page loads for example orders of today's date 2021-01-13 I have checked this but this didn't help me.

Here is my code

$args = array(
        'post_type' => 'shop_order',
        'posts_per_page' => -1,
        'fields' => 'ids',
        'post_status' => 'wc-processing',
        'date_query' => array(
        'post_date' => //I want current date orders
        )
    );

    $fmeb_all_orderIds = get_posts($args);
    // loop through $fmeb_all_orderIds

how can I get the current date orders, please help. Thanks :)

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论