Conditions - Filter Hook References - Shipped

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

Example Codes:

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

wtars_shipped_admin/get-{group_type_id}-group-conditions

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

Example Codes:

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

wtars_shipped_admin/get-{condition_type_id}-condition-fields

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

Example Codes:

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

wtars_shipped/validate-{condition_type_id}-condition

  • Parameters:
  • $condition array()
  • $data array()

Example Codes:

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