WooCommerce Partial COD - Payment Gateway Restriction & Fees

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.


woopcd_partialcod/fee-amount

  • Parameters:
  • $fee_amount numeric
  • $fee_key string
  • $fee array()

Example Codes:

  1. function custom_fee_amount( $fee_amount, $fee_key, $fee ) {
  2.   //add your custom code here
  3.   return $fee_amount;
  4. }
  5. add_filter( 'woopcd_partialcod/fee-amount', 'custom_fee_amount', 10, 3 );

woopcd_partialcod/fee-amount-taxes

  • Parameters:
  • $fee_taxes array()
  • $fee_key string
  • $fee array()

Example Codes:

  1. function custom_fee_amount_taxes( $fee_taxes, $fee_key, $fee ) {
  2.   //add your custom code here
  3.   return $fee_taxes;
  4. }
  5. add_filter( 'woopcd_partialcod/fee-amount-taxes', 'custom_fee_amount_taxes', 10, 3 );

woopcd_partialcod/fee-amount-tax

  • Parameters:
  • $fee_amount_tax numeric
  • $fee_key string
  • $fee array()

Example Codes:

  1. function custom_fee_amount_tax( $fee_amount_tax, $fee_key, $fee ) {
  2.   //add your custom code here
  3.   return $fee_amount_tax;
  4. }
  5. add_filter( 'woopcd_partialcod/fee-amount-tax', 'custom_fee_amount_tax', 10, 3 );

woopcd_partialcod/fee-desc

  • Parameters:
  • $fee_desc string
  • $fee_key string
  • $fee array()

Example Codes:

  1. function custom_fee_desc( $fee_desc, $fee_key, $fee ) {
  2.   //add your custom code here
  3.   return $fee_desc;
  4. }
  5. add_filter( 'woopcd_partialcod/fee-desc', 'custom_fee_desc', 10, 3 );

woopcd_partialcod/fee-title

  • Parameters:
  • $fee_title string
  • $fee_key string
  • $fee array()

Example Codes:

  1. function custom_fee_title( $fee_title, $fee_key, $fee ) {
  2.   //add your custom code here
  3.   return $fee_title;
  4. }
  5. add_filter( 'woopcd_partialcod/fee-title', 'custom_fee_title', 10, 3 );
    • Related Articles

    • 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. ...
    • 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. ...
    • Settings & Restrictions - Filter Hook References

      This is simply a list of settings & restrictions-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 Payments - Filter Hook References

      This is simply a list of partial payment-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 Notifications - Filter Hook References

      This is simply a list of cart notification-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. ...