Others - Filter Hook References - Shipped

Others - Filter Hook References

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:

  1. function custom_get_settings_section_fields( $in_fields, $args ) {
  2.    //add your custom code here
  3.    return $in_fields;
  4. }
  5. 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:

  1. function custom_get_other_shipping_rates( $shipping_rates, $args ) {
  2.   //add your custom code here
  3.   return $shipping_rates;
  4. }
  5. 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:

  1. function custom_get_other_shipping_rate_ids( $instance_ids, $rates ) {
  2.   //add your custom code here
  3.   return $instance_ids;
  4. }
  5. 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:

  1. function custom_get_hash( $hash, $hash_params ) {
  2.   //add your custom code here
  3.   return $hash;
  4. }
  5. add_filter( 'wtars_shipped/get-hash', 'custom_get_hash', 10, 2 );

wtars_shipped/get-update-triggers

  • Parameters:
  • $cart_triggers array()

Example Codes:

  1. function custom_get_update_triggers( $cart_triggers ) {
  2.   //add your custom code here
  3.   return $cart_triggers;
  4. }
  5. add_filter( 'wtars_shipped/get-update-triggers', 'custom_get_update_triggers', 10 );
    • Related Articles

    • Shipping Costs / Shipping Fees - Filter Hook References

      This is simply a list of shipping costs/fees related filter hooks found within the WooCommerce Table Rate Shipping files. This list also includes the supported parameters and example codes. wtars_shipped_admin/get-cost-type-groups Parameters: ...
    • Shipping Rates - Filter Hook References

      This is simply a list of shipping rates-related filter hooks found within the WooCommerce Table Rate Shipping files. This list also includes the supported parameters and example codes. wtars_shipped/rate-cost Parameters: $rate_cost array() $rate_id ...
    • Conditions - Filter Hook References

      This is simply a list of conditions related filter hooks found within the WooCommerce Table Rate Shipping files. This list also includes the supported parameters and example codes. wtars_shipped_admin/get-condition-groups Parameters: $group_types ...
    • Product Rules - Filter Hook References

      This is simply a list of product rules related filter hooks found within the WooCommerce Table Rate Shipping files. This list also includes the supported parameters and example codes. wtars_shipped_admin/get-product-filter-groups Parameters: ...
    • Handling Fees - Filter Hook References

      This is simply a list of handling fee-related filter hooks found within the WooCommerce Table Rate Shipping files. This list also includes the supported parameters and example codes. wtars_shipped/fee-cost Parameters: $rate_metas array() $rate_id ...