Others - Filter Hook References

Modified on Mon, 19 Sep, 2022 at 8:52 AM

This is simply a list of other filter hooks found within the WooCommerce Table Rate Shipping files. This list also includes the supported parameters and example codes.


wtars_shipped_admin/get-settings-section-fields

  • Parameters:
  • $in_fields array()
  • $args array()


Example Codes:

function custom_get_settings_section_fields( $in_fields, $args ) {

    //add your custom code here
    return $in_fields;
}

add_filter( 'wtars_shipped_admin/get-settings-section-fields', 'custom_get_settings_section_fields', 10, 2 );

wtars_shipped_admin/get-other-shipping-rates

  • Parameters:
  • $shipping_rates array()
  • $args array()


Example Codes:

function custom_get_other_shipping_rates( $shipping_rates, $args ) {

    //add your custom code here
    return $shipping_rates;
}

add_filter( 'wtars_shipped_admin/get-other-shipping-rates', 'custom_get_other_shipping_rates', 10, 2 );

wtars_shipped/get-other-shipping-rate-ids

  • Parameters:
  • $instance_ids array()
  • $rates array()


Example Codes:

function custom_get_other_shipping_rate_ids( $instance_ids, $rates ) {

    //add your custom code here
    return $instance_ids;
}

add_filter( 'wtars_shipped/get-other-shipping-rate-ids', 'custom_get_other_shipping_rate_ids', 10, 2 );

wtars_shipped/get-hash

  • Parameters:
  • $hash array()
  • $hash_params array()


Example Codes:

function custom_get_hash( $hash, $hash_params ) {

    //add your custom code here
    return $hash;
}

add_filter( 'wtars_shipped/get-hash', 'custom_get_hash', 10, 2 );

wtars_shipped/get-update-triggers

  • Parameters:
  • $cart_triggers array()


Example Codes:

function custom_get_update_triggers( $cart_triggers ) {

    //add your custom code here
    return $cart_triggers;
}

add_filter( 'wtars_shipped/get-update-triggers', 'custom_get_update_triggers', 10 );

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article