Others - Filter Hook References
This is simply a list of other 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-method-{method_id}-props
- Parameters:
- $method_props array()
Example Codes:
- function custom_get_method_props( $method_props ) {
- //add your custom code here
- return $method_props;
- }
- add_filter( 'woopcd_partialcod-admin/get-method-{method_id}-props', 'custom_get_method_props', 10, 1 );
woopcd_partialcod-admin/get-settings-section-fields
- Parameters:
- $fields array()
Example Codes:
- function custom_get_settings_section_fields( $fields ) {
- //add your custom code here
- return $fields;
- }
- add_filter( 'woopcd_partialcod-admin/get-settings-section-fields', 'custom_get_settings_section_fields', 10, 1 );
woopcd_partialcod/partial-payment/get-method-ids
- Parameters:
- $method_ids array()
Example Codes:
- function custom_get_method_ids( $method_ids ) {
- //add your custom code here
- return $method_ids;
- }
- add_filter( 'woopcd_partialcod/partial-payment/get-method-ids', 'custom_get_method_ids', 10, 1 );
woopcd_partialcod/is_email
- Parameters:
- $is_email bool
Example Codes:
- function custom_get_is_email( $is_email ) {
- //add your custom code here
- return $is_email; // true or false
- }
- add_filter( 'woopcd_partialcod/is_email', 'custom_get_is_email', 10, 1 );
woopcd_partialcod/is_db_order_total
- Parameters:
- $is_db_order_total bool
Example Codes:
- function custom_get_is_db_order_total( $is_db_order_total ) {
- //add your custom code here
- return $is_db_order_total; // true or false
- }
- add_filter( 'woopcd_partialcod/is_db_order_total', 'custom_get_is_db_order_total', 10, 1 );
woopcd_partialcod/can_adjust_cart_total
- Parameters:
- $can_adjust_cart_total bool
Example Codes:
- function custom_can_adjust_cart_total( $can_adjust_cart_total ) {
- //add your custom code here
- return $can_adjust_cart_total; // true or false
- }
- add_filter( 'woopcd_partialcod/can_adjust_cart_total', 'custom_can_adjust_cart_total', 10, 1 );
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. ...
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. ...
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. ...