Conditional Discounts for WooCommerce icon
eCommerce & WooCommerce

Conditional Discounts for WooCommerce hooks reference

  • By Hermann LAHAMI
  • v2.32.3
  • Updated

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.

functions.phpyour child theme
// 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

  • includes/utils.php line 616
    do_action( "o_admin_field_{$value['type']}", $value );
  • includes/utils.php line 1165
    apply_filters( 'o_allowed_tags', $allowed_tags );
  • includes/class-wad-discount.php line 875
    apply_filters( 'wad_after_calculate_sale_price', $sale_price, $original_sale_price, $product );
  • includes/class-wad-discount.php line 815
    apply_filters( 'wad_before_calculate_sale_price', $sale_price, $product );
  • includes/class-wad-discount.php line 363
    apply_filters( 'wad_fields_values_match', array( 'customer-role' => $roles_select, 'customer' => $users_select, 'order-subtotal' => $text, 'order-item-count' => $text, ), $condition, $selected_value );
  • includes/class-wad-discount.php line 767
    apply_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' ), ) );
  • includes/class-wad-discount.php line 725
    apply_filters( 'wad_get_evaluable_condition', false, $rule, $product_id );
  • includes/class-wad-discount.php line 1194
    apply_filters( 'wad_get_quantity_pricing_tables', $table, $product_id, $product_obj );
  • includes/class-wad-discount.php line 763
    apply_filters( 'wad_is_applicable', $is_valid, $this, $product_id );
  • includes/class-wad-discount.php line 700
    apply_filters( 'wad_is_rule_valid', $is_valid, $rule, $this );
  • includes/class-wad-discount.php line 399
    apply_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: