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.
woopcd_partialcod/get-advance-payment-info
- Parameters:
- $advanc_info array()
Example Codes:
function custom_get_advance_payment_info( $advanc_info ) { //add your custom code here return $advanc_info; } add_filter( 'woopcd_partialcod/get-advance-payment-info', 'custom_get_advance_payment_info', 10, 1 );
woopcd_partialcod/get-partial-payment-data
- Parameters:
- $partial_payment_data array()
Example Codes:
function custom_get_partial_payment_data( $partial_payment_data ) { //add your custom code here return $partial_payment_data; } add_filter( 'woopcd_partialcod/get-partial-payment-data', 'custom_get_partial_payment_data', 10, 1 );
woopcd_partialcod/get_formatted_order_total
- Parameters:
- $formatted_total string
- $order object
- $tax_display bool
- $display_refunded bool
Example Codes:
function custom_get_formatted_order_total( $formatted_total, $order, $tax_display, $display_refunded ) { //add your custom code here return $formatted_total; } add_filter( 'woopcd_partialcod/get_formatted_order_total', 'custom_get_formatted_order_total', 10, 4 );
woopcd_partialcod/get-order-advance_pay-label
- Parameters:
- $advance_pay_text string
Example Codes:
function custom_get_order_advance_pay_label( $advance_pay_text ) { //add your custom code here return $advance_pay_text; } add_filter( 'woopcd_partialcod/get-order-advance_pay-label', 'custom_get_order_advance_pay_label', 10, 1 );
woopcd_partialcod/get-order-advance-method-label
- Parameters:
- $advance_method_text string
Example Codes:
function custom_get_order_advance_method_label( $advance_method_text ) { //add your custom code here return $advance_method_text; } add_filter( 'woopcd_partialcod/get-order-advance-method-label', 'custom_get_order_advance_method_label', 10, 1 );
woopcd_partialcod/get-order-advance-method-label
- Parameters:
- $delivery_pay_text string
Example Codes:
function custom_get_order_delivery_pay_label( $delivery_pay_text ) { //add your custom code here return $delivery_pay_text; } add_filter( 'woopcd_partialcod/get-order-delivery-pay-label', 'custom_get_order_delivery_pay_label', 10, 1 );
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