WooCommerce Partial COD - Payment Gateway Restriction & Fees

Product Rules - Filter Hook References

This is simply a list of product rule-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-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( 'woopcd_partialcod-admin/get-product-filter-groups', 'custom_get_product_filter_groups', 10, 2 );

woopcd_partialcod-admin/get-{group_type_id}-group-product-filters

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

Example Codes:

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

woopcd_partialcod-admin/get-{filter_type_id}-product-filter-fields

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

Example Codes:

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

woopcd_partialcod/validate-{filter_type_id}-filter

  • Parameters:
  • $filter_args array()
  • $cart_item array()
  • $cart_data array()

Example Codes:

  1. function custom_validate_filter_type_id_product_fitler( $filter_args, $cart_item, $cart_data ) {
  2.   //add your custom code here
  3.   return true; // true or false
  4. }
  5. add_filter( 'woopcd_partialcod/validate-{filter_type_id}-filter', 'custom_validate_filter_type_id_product_fitler', 10, 3 );
    • 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. ...