Cart / Package Totals - Filter Hook References
This is simply a list of cart/package totals-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-totals-options
- Parameters:
- $option_types array()
Example Codes:
- function custom_get_totals_options( $option_types ) {
- //add your custom code here
- return $option_types;
- }
- add_filter( 'wtars_shipped_admin/get-totals-options', 'custom_get_totals_options', 10 );
wtars_shipped/calculate-{option_type_id}-totals
- Parameters:
- $totals array()
- $data array()
Example Codes:
- function custom_calculate_option_type_id_totals( $totals, $data ) {
- //add your custom code here
- return $totals;
- }
- add_filter( 'wtars_shipped/calculate-option_type_id-totals', 'custom_calculate_option_type_id_totals', 10, 2 );
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 ...
Cart Contents - Filter Hook References
This is simply a list of cart contents-related filter hooks found within the WooCommerce Table Rate Shipping files. This list also includes the supported parameters and example codes. wtars_shipped/get-cart-item Parameters: $cart_item array() $item ...
Package Contents - Filter Hook References
This is simply a list of package contents-related filter hooks found within the WooCommerce Table Rate Shipping files. This list also includes the supported parameters and example codes. wtars_shipped/get-package-item Parameters: $package_item ...
Shipping Rates
The Shipping Rates setting page can be used to create and manage shipping rates (i.e the shipping methods). Multiple shipping rates and shipping costs can be made available based on product rules and conditions. Cost Limit Per Rate This field ...