WooCommerce Partial COD - Payment Gateway Restriction & Fees

Conditions - Filter Hook References

This is simply a list of condition-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes.


woopcd_partialcod-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( 'woopcd_partialcod-admin/get-condition-groups', 'custom_get_condition_groups', 10, 2 );

woopcd_partialcod-admin/get-{group_type_id}-group-conditions

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

Example Codes:

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

woopcd_partialcod-admin/get-{condition_type_id}-condition-fields

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

Example Codes:

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

woopcd_partialcod-admin/get-{condition_type_id}-condition-fields

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

Example Codes:

  1. function custom_validate_condition_type_id_condition( $condition, $cart_data ) {
  2.    //add your custom code here
  3.    return true; // true or false
  4. }
  5. add_filter( 'woopcd_partialcod/validate-{condition_type_id}-condition', 'custom_validate_condition_type_id_condition', 10, 2 );
    • Related Articles

    • Gateway Fees - Filter Hook References

      This is simply a list of gateway fee-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes. ...
    • Partial Payment Amounts - Filter Hook References

      This is simply a list of partial payment amount-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes. ...
    • Gateway Fees

      The Gateway Fees setting page can be used to create and manage gateway fees. Multiple gateway fees can be created based on product rules and conditions. Gateway Fees Limit This field determines whether or not the gateway fees should have fee limits. ...
    • Cart Discounts - Filter Hook References

      This is simply a list of cart discount-related filter hooks that can be found within the WooCommerce Partial COD - Payment Gateway Restrictions & Fees files. This list also includes the supported parameters and example codes. ...
    • Cart Discounts

      The Cart Discounts setting page can be used to create and manage gateway fees. Multiple cart discounts can be created based on product rules and conditions. Discounts Limit This field determines whether or not the cart discounts should have limits. ...