This is simply a list of order condition-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-order-condition-groups
- Parameters:
- $group_types array()
- $args array()
Example Codes:
function custom_get_order_condition_groups( $group_types, $args ) { //add your custom code here return $group_types; } add_filter( 'woopcd_partialcod-admin/get-order-condition-groups', 'custom_get_order_condition_groups', 10, 2 );
woopcd_partialcod-admin/get-order-{group_type_id}-group-conditions
- Parameters:
- $condition_types array()
- $args array()
Example Codes:
function custom_get_order_group_type_id_group_conditions( $condition_types, $args ) { //add your custom code here return $condition_types; } add_filter( 'woopcd_partialcod-admin/get-order-{group_type_id}-group-conditions', 'custom_get_order_group_type_id_group_conditions', 10, 2 );
woopcd_partialcod-admin/get-order-{condition_type_id}-condition-fields
- Parameters:
- $fields array()
- $args array()
Example Codes:
function custom_get_order_condition_type_id_condition_fields( $fields, $args ) { //add your custom code here return $fields; } add_filter( 'woopcd_partialcod-admin/get-order-{condition_type_id}-condition-fields', 'custom_get_order_condition_type_id_condition_fields', 10, 2 );
woopcd_partialcod/validate-order-{condition_type_id}-condition
- Parameters:
- $condition array()
- $order_data array()
Example Codes:
function custom_validate_order_condition_type_id_condition( $condition, $order_data ) { //add your custom code here return true; // true or false } add_filter( 'woopcd_partialcod/validate-order-{condition_type_id}-condition', 'custom_validate_order_condition_type_id_condition', 10, 2 );
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