• anhduc.bkhn

    (@anhducbkhn)


    My ENV:

    WC: 9.4.2
    PHP: 8.3.19
    WP: 6.7.2
    AvantLink Integration For WooCommerce: 1.0.11
    // File wp-content/plugins/avantlink-integration-for-woocommerce/avantlink-integration-for-woocommerce.php

    wp_localize_script('avantlinkwoo_orderarray', 'order', array(
    'order_id' => $order->get_order_number(),
    'order_subtotal' => $order->get_subtotal() - $order->get_total_discount(),
    'order_country' => $order->billing_country,
    'order_state' => $order->billing_state,
    'order_currency' => $order->currency,
    'merchant_id' => $merchantId,
    'coupons' => $order->get_used_coupons(),
    'new_customer' => $avlNewCustomer,
    'order_items' => json_encode($items)
    ));

    The function get_used_coupons is deprecated.

    Please help to fix it.

The topic ‘The plugin is using deprecated function get_used_coupons’ is closed to new replies.