• Resolved GalinaBublik

    (@galinabublik)


    On main site i have 15 orders. As administrator on second site /int/ a have 3 orders

    On Acount page used wc_get_customer_order_count function that return value from MAIN site!!!

    As uoy can see 3 – this i tried next code

    $orders = wc_get_orders(array(
    'customer_id' => get_current_user_id(),
    'return' => 'ids',
    ));
    echo count($orders);

    Please correct this issue

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Function wc_get_customer_order_count not working correctly on multisite’ is closed to new replies.