Message Parameters - Filter Hook References

Modified on Mon, 19 Sep, 2022 at 8:25 AM

This is simply a list of message parameters 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-parameter-type-groups

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


Example Codes:

function custom_get_parameter_type_groups( $group_types, $args ) {

    //add your custom code here
    return $group_types;
}

add_filter( 'wtars_shipped_admin/get-parameter-type-groups', 'custom_get_parameter_type_groups', 10, 2 );

wtars_shipped_admin/get-parameter-group-types-{group_type_id}

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


Example Codes:

function custom_get_parameter_group_types_group_type_id( $parameter_types, $args ) {

    //add your custom code here
    return $parameter_types;
}

add_filter( 'wtars_shipped_admin/get-parameter-group-types-group_type_id', 'custom_get_parameter_group_types_group_type_id', 10, 2 );

wtars_shipped/message-text

  • Parameters:
  • $message array()
  • $message_id array()
  • $notification_type array()
  • $instance_id array()


Example Codes:

function custom_message_text( $message, $message_id, $notification_type, $instance_id ) {

    //add your custom code here
    return $message;
}

add_filter( 'wtars_shipped/message-text', 'custom_message_text', 10, 4 );

wtars_shipped/parameter-value

  • Parameters:
  • $parameter_value array()
  • $parameter_id array()
  • $parameter_type array()
  • $instance_id array()


Example Codes:

function custom_parameter_value( $parameter_value, $parameter_id, $parameter_type, $instance_id ) {

    //add your custom code here
    return $parameter_value;
}

add_filter( 'wtars_shipped/parameter-value', 'custom_parameter_value', 10, 4 );

wtars_shipped/parameter-currency-value

  • Parameters:
  • $parameter_value array()
  • $parameter_id array()
  • $parameter_type array()
  • $instance_id array()


Example Codes:

function custom_parameter_currency_value( $parameter_value, $parameter_id, $parameter_type, $instance_id ) {

    //add your custom code here
    return $parameter_value;
}

add_filter( 'wtars_shipped/parameter-currency-value', 'custom_parameter_currency_value', 10, 4 );

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article