Plugin Directory

Changeset 3475323


Ignore:
Timestamp:
03/05/2026 08:45:40 AM (4 weeks ago)
Author:
api2cartdev
Message:

Fixed shipment deleted webhook not firing when using delete_meta_data with HPOS.

Location:
api2cart-webhook-helper/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • api2cart-webhook-helper/trunk/a2c-webhook-helper.php

    r3325524 r3475323  
    44Description: The plugin adds extra webhook topics for WooCommerce.
    55Author: API2Cart
    6 Version: 1.7.4
     6Version: 1.7.5
    77Author URI: https://api2cart.com/
    88License:      GPL2
  • api2cart-webhook-helper/trunk/app/WH_Helper.php

    r3325524 r3475323  
    99{
    1010
    11   const VERSION                    = '1.7.4';
     11  const VERSION                    = '1.7.5';
    1212  const LANG_DOMAIN                = 'a2c_wh';
    1313
     
    199199    $current = $order->get_meta( self::METAKEY_SHIPMENT_TRACKING, true );
    200200
    201     if ( $current !== '' && $this->_tracking !== $current ) {
    202       $this->afterShipmentUpdate( 0, $order->get_id(), self::METAKEY_SHIPMENT_TRACKING, $current );
     201    $currentData = ( $current !== '' ) ? $current : [];
     202
     203    if ( $this->_tracking !== $currentData ) {
     204      $this->afterShipmentUpdate( 0, $order->get_id(), self::METAKEY_SHIPMENT_TRACKING, $currentData );
    203205    }
    204206  }
  • api2cart-webhook-helper/trunk/readme.txt

    r3325524 r3475323  
    55Requires at least: 4.1
    66Tested up to: 6.8
    7 Stable tag: 1.7.4
     7Stable tag: 1.7.5
    88License:      GPL2
    99License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    6868
    6969== Changelog ==
     70= 1.7.5 =
     71* Fixed shipment deleted webhook not firing when using delete_meta_data with HPOS.
     72
    7073= 1.7.4 =
    7174* Added support plugin Orders Tracking for WooCommerce.
Note: See TracChangeset for help on using the changeset viewer.