Handling Fees - Filter Hook References

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 array()
  • $instance_id array()

Example Codes:

  1. function custom_fee_cost( $fee_cost, $fee_id, $instance_id ) {
  2.   //add your custom code here
  3.   return $fee_cost;
  4. }
  5. add_filter( 'wtars_shipped/fee-cost', 'custom_fee_cost', 10, 3 );

wtars_shipped/fee-taxes

  • Parameters:
  • $fees_taxes array()
  • $fee_id array()
  • $instance_id array()

Example Codes:

  1. function custom_fee_taxes( $fee_taxes, $fee_id, $instance_id ) {
  2.   //add your custom code here
  3.   return $fee_taxes;
  4. }
  5. add_filter( 'wtars_shipped/fee-taxes', 'custom_fee_taxes', 10, 3 );

wtars_shipped/fee-tax

  • Parameters:
  • $fee_tax array()
  • $fee_id array()
  • $instance_id array()

Example Codes:

  1. function custom_fee_tax( $fee_tax, $fee_id, $instance_id ) {
  2.   //add your custom code here
  3.   return $fee_tax;
  4. }
  5. add_filter( 'wtars_shipped/fee-tax', 'custom_fee_tax', 10, 3 );

wtars_shipped/fee-tooltip

  • Parameters:
  • $fee_tooltip array()
  • $fee_id array()
  • $instance_id array()

Example Codes:

  1. function custom_fee_tooltip( $fee_tooltip, $fee_id, $instance_id ) {
  2.   //add your custom code here
  3.    return $fee_tooltip;
  4. }
  5. add_filter( 'wtars_shipped/fee-tooltip', 'custom_fee_tooltip', 10, 3 );

wtars_shipped/fee-title

  • Parameters:
  • $fee_title array()
  • $fee_id array()
  • $instance_id array()

Example Codes:

  1. function custom_fee_title( $fee_title, $fee_id, $instance_id ) {
  2.    //add your custom code here
  3.    return $fee_title;
  4. }
  5. add_filter( 'wtars_shipped/fee-title', 'custom_fee_title', 10, 3 );
    • 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 ...
    • Handling Fees

      The Handling Fees settings page can be used to create and manage handling fees based on product rules and co, the handling fees can be set as part of a shipping cost or as a separate cart fee. Handling Fees Limit This field determines whether or not ...
    • 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() ...
    • 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 ...