WooCommerce Partial COD - Payment Gateway Restriction & Fees

Order Conditions - Filter Hook References

This is simply a list of order 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-order-condition-groups

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

Example Codes:

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

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

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

Example Codes:

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

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

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

Example Codes:

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

woopcd_partialcod/validate-order-{condition_type_id}-condition

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

Example Codes:

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

      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. ...
    • 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. ...