Conditional Discounts for WooCommerce 2.32.3 has 1 actions and 10 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Change a value Conditional Discounts for WooCommerce is about to use
add_filter( 'o_allowed_tags', function( $allowed_tags ) {
// Change $allowed_tags here.
return $allowed_tags;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
do_action( "o_admin_field_{$value['type']}", $value ); -
o_allowed_tags
filterapply_filters( 'o_allowed_tags', $allowed_tags ); -
apply_filters( 'wad_after_calculate_sale_price', $sale_price, $original_sale_price, $product ); -
apply_filters( 'wad_before_calculate_sale_price', $sale_price, $product ); -
wad_fields_values_match
filterapply_filters( 'wad_fields_values_match', array( 'customer-role' => $roles_select, 'customer' => $users_select, 'order-subtotal' => $text, 'order-item-count' => $text, ), $condition, $selected_value ); -
wad_get_discounts_conditions
filterapply_filters( 'wad_get_discounts_conditions', array( 'customer-role' => esc_html__( 'If Customer role', 'woo-advanced-discounts' ), 'customer' => esc_html__( 'If Customer', 'woo-advanced-discounts' ), 'order-subtotal' => esc_html__( 'If Order subtotal', 'woo-advanced-discounts' ), 'order-item-count' => esc_html__( 'If Order items count', 'woo-advanced-discounts' ), ) ); -
wad_get_evaluable_condition
filterapply_filters( 'wad_get_evaluable_condition', false, $rule, $product_id ); -
apply_filters( 'wad_get_quantity_pricing_tables', $table, $product_id, $product_obj ); -
wad_is_applicable
filterapply_filters( 'wad_is_applicable', $is_valid, $this, $product_id ); -
wad_is_rule_valid
filterapply_filters( 'wad_is_rule_valid', $is_valid, $rule, $this ); -
wad_operators_fields_match
filterapply_filters( 'wad_operators_fields_match', array( 'customer-role' => $arrays_operators_select, 'customer' => $arrays_operators_select, 'order-subtotal' => $number_operators_select, 'order-item-count' => $number_operators_select, ), $condition, $selected_value );
Generated from Conditional Discounts for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: