Product Rules - Filter Hook References - Shipped

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:
  • $group_types array()
  • $args array()

Example Codes:

  1. function custom_get_product_filter_groups( $group_types, $args ) {
  2.   //add your custom code here
  3.   return $group_types;
  4. }
  5. add_filter( 'wtars_shipped_admin/get-product-filter-groups', 'custom_get_product_filter_groups', 10, 2 );

wtars_shipped_admin/get-{group_type_id}-group-product-filters

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

Example Codes:

  1. function custom_get_group_type_id_group_product_filters( $filter_types, $args ) {
  2.   //add your custom code here
  3.   return $filter_types;
  4. }
  5. add_filter( 'wtars_shipped_admin/get-group_type_id-group-product-filters', 'custom_get_group_type_id_group_product_filters', 10, 2 );

wtars_shipped_admin/get-{filter_type_id}-product-filter-fields

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

Example Codes:

  1. function custom_get_filter_type_id_product_filter_fields( $in_fields, $args ) {
  2.   //add your custom code here
  3.   return $in_fields;
  4. }
  5. add_filter( 'wtars_shipped_admin/get-filter_type_id-product-filter-fields', 'custom_get_filter_type_id_product_filter_fields', 10, 2 );

wtars_shipped/validate-{filter_type_id}-fitler

  • Parameters:
  • $filter_args array()
  • $package_item array()
  • $data array()

Example Codes:

  1. function custom_validate_filter_type_id_fitler( $filter_args, $package_item, $data ) {
  2.   //add your custom code here
  3.   return true; // true or false
  4. }
  5. add_filter( 'wtars_shipped/validate-filter_type_id-fitler', 'custom_validate_filter_type_id_fitler', 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 ...
    • 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 ...
    • 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 ...
    • 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() ...