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:
function custom_fee_amount( $fee_amount, $fee_key, $fee ) { //add your custom code here return $fee_amount; } 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:
function custom_fee_amount_taxes( $fee_taxes, $fee_key, $fee ) { //add your custom code here return $fee_taxes; } 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:
function custom_fee_amount_tax( $fee_amount_tax, $fee_key, $fee ) { //add your custom code here return $fee_amount_tax; } 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:
function custom_fee_desc( $fee_desc, $fee_key, $fee ) { //add your custom code here return $fee_desc; } 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:
function custom_fee_title( $fee_title, $fee_key, $fee ) { //add your custom code here return $fee_title; } add_filter( 'woopcd_partialcod/fee-title', 'custom_fee_title', 10, 3 );
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article