Actions

includes/class-yith-shippo-order-shipping.php

Copied!
Copy

This hook is triggered after that the shipping as paid and the transaction has been created

Params
 array                      $transaction Transaction created.
 int                        $order_id Order id.
 string                     $key Current key of rate.
 YITH_Shippo_Order_Shipping $this Current object.

includes/class-yith-shippo-tracking.php

Copied!
Copy

Params
 string                     $old_status Old status.
 string                     $new_status New status.
 array                      $tracking_updated Updated tracking info.
 string                     $key Current key of rate.
 YITH_Shippo_Order_Shipping $this Current object.

Copied!
Copy

Params
 string                     $old_status Old status.
 string                     $new_status New status.
 array                      $tracking_updated Updated tracking info.
 string                     $key Current key of rate.
 YITH_Shippo_Order_Shipping $this Current object.

includes/data-stores/class-yith-shippo-parcel-box-data-store.php

Copied!
Copy

This action is triggered after the creation of a new parcel box

Params
 int                    $parcel_box_id New parcel box id.
 YITH_Shippo_Parcel_Box $parcel_box New parcel box object.

Copied!
Copy

This action is triggered after the loading of a parcel box

Params
 YITH_Shippo_Parcel_Box $parcel_box New parcel box object.

Copied!
Copy

This action is triggered when a parcel box is updated

Params
 int $parcel_box_id Parcel box id.

Copied!
Copy

This action is triggered when a parcel box is deleted

Params
 int                    $parcel_box_id Parcel box id.
 YITH_Shippo_Parcel_Box $parcel_box New parcel box object.

includes/data-stores/class-yith-shippo-shipping-rule-data-store.php

Copied!
Copy

Action triggered after update a rule

Params
 int                       $id the rule id.
 YITH_Shippo_Shipping_Rule $rule The rule.

Copied!
Copy

Action triggered before delete a rule

Params
 int                       $id the rule id.
 YITH_Shippo_Shipping_Rule $rule The rule.

Copied!
Copy

Action triggered just before delete a rule

Params
 int                       $id the rule id.
 YITH_Shippo_Shipping_Rule $rule The rule.

Copied!
Copy

Action triggered before delete a rule

Params
 int                       $id the rule id.
 YITH_Shippo_Shipping_Rule $rule The rule.

includes/data-stores/class-yith-shippo-tracking-data-store.php

Copied!
Copy

This action is triggered after the creation of a new tracking

Params
 int                  $tracking_id New tracking id.
 YITH_Shippo_Tracking $tracking New tracking object.

Copied!
Copy

This action is triggered after the loading of a tracking

Params
 YITH_Shippo_Tracking $tracking New tracking box object.

Copied!
Copy

This action is triggered when a parcel box is triggered

Params
 int $tracking_id Tracking id.

Copied!
Copy

This action is triggered when a tracking is deleted

Params
 int                  $tracking_id Tracking id.
 YITH_Shippo_Tracking $tracking New tracking box object.