• Germanized
  • Hooks

Shipments

woocommerce_gzd_shipment_details_before_shipment_table Action

This action is executed before printing the shipment detail table on the customer account page.

  1. $shipment \Vendidero\Germanized\Shipments\Shipment The shipment instance.
add_action( "woocommerce_gzd_shipment_details_before_shipment_table", function( $shipment ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_shipment_details_before_shipment_table_items Action

This action is executed before printing the shipment table items on the customer account page.

  1. $shipment \Vendidero\Germanized\Shipments\Shipment The shipment instance.
add_action( "woocommerce_gzd_shipment_details_before_shipment_table_items", function( $shipment ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_shipment_details_after_shipment_table_items Action

This action is executed after printing the shipment table items on the customer account page.

  1. $shipment \Vendidero\Germanized\Shipments\Shipment The shipment instance.
add_action( "woocommerce_gzd_shipment_details_after_shipment_table_items", function( $shipment ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_shipment_details_after_shipment_table Action

This action is executed after printing the shipment detail table on the customer account page.

  1. $shipment \Vendidero\Germanized\Shipments\Shipment The shipment instance.
add_action( "woocommerce_gzd_shipment_details_after_shipment_table", function( $shipment ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_return_shipment_after_instructions Action

This action is executed after printing the return shipment instructions.

  1. $shipment \Vendidero\Germanized\Shipments\ReturnShipment The shipment instance.
add_action( "woocommerce_gzd_return_shipment_after_instructions", function( $shipment ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_view_shipment Action

This action is executed after printing the shipment details on the customer account page.

  1. $shipment_id int The shipment id.
add_action( "woocommerce_gzd_view_shipment", function( $shipment_id ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_before_account_shipments Action

  1. $param_1 string
  2. $param_2 string
add_action( "woocommerce_gzd_before_account_shipments", function( $param_1, $param_2 ) {
    // Do something
        
}, 10, 2 );

woocommerce_gzd_my_account_shipments_column_{$column_id} Action

  1. $param_1 string
  2. $param_2 string

woocommerce_gzd_after_account_shipments Action

This action is executed after listing all available shipments for an order on the customer account page.

  1. $shipments \Vendidero\Germanized\Shipments\Shipment[] Array of shipments.
add_action( "woocommerce_gzd_after_account_shipments", function( $shipments ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_add_return_shipment_details_before_shipment_table_items Action

This action is executed before printing the add return shipment table on the customer account page.

  1. $order \WC_Order The order instance.
add_action( "woocommerce_gzd_add_return_shipment_details_before_shipment_table_items", function( $order ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_add_return_shipment_details_after_shipment_table_items Action

This action is executed after printing the add return shipment table items on the customer account page.

  1. $order \WC_Order The order instance.
add_action( "woocommerce_gzd_add_return_shipment_details_after_shipment_table_items", function( $order ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_add_return_shipment_details_after_shipment_table Action

This action is executed after printing the return shipment table on the customer account page.

  1. $order \WC_Order The order instance.
add_action( "woocommerce_gzd_add_return_shipment_details_after_shipment_table", function( $order ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_add_return_shipment Action

This action is executed after printing the add return shipment form on the customer account page.

  1. $order_id int The order id.
add_action( "woocommerce_gzd_add_return_shipment", function( $order_id ) {
    // Do something
        
}, 10, 1 );

woocommerce_gzd_email_shipment_details Action

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
  4. $param_4 string
add_action( "woocommerce_gzd_email_shipment_details", function( $param_1, $param_2, $param_3, $param_4 ) {
    // Do something
        
}, 10, 4 );

woocommerce_gzd_email_shipment_item_quantity Filter

  1. $param_1 string
  2. $param_2 string
add_filter( "woocommerce_gzd_email_shipment_item_quantity", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 10, 2 );

woocommerce_gzd_shipment_item_meta Action

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
  4. $param_4 string
add_action( "woocommerce_gzd_shipment_item_meta", function( $param_1, $param_2, $param_3, $param_4 ) {
    // Do something
        
}, 10, 4 );

woocommerce_gzd_email_before_shipment_table Action

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
  4. $param_4 string
add_action( "woocommerce_gzd_email_before_shipment_table", function( $param_1, $param_2, $param_3, $param_4 ) {
    // Do something
        
}, 10, 4 );

woocommerce_gzd_email_after_shipment_table Action

  1. $param_1 string
  2. $param_2 string
  3. $param_3 string
  4. $param_4 string
add_action( "woocommerce_gzd_email_after_shipment_table", function( $param_1, $param_2, $param_3, $param_4 ) {
    // Do something
        
}, 10, 4 );

woocommerce_gzd_shipment_item_thumbnail Filter

  1. $param_1 string
  2. $param_2 string
add_filter( "woocommerce_gzd_shipment_item_thumbnail", function( $param_1, $param_2 ) {
    // Do something
    return $param_1;    
}, 10, 2 );