TierStep icon
Utilities

TierStep hooks reference

TierStep 2.2.1 has 1 actions and 7 filters, read directly from its source code on Nov 19, 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
// Run your own code when TierStep fires an action
add_action( 'commercewp_woo_tierstep_units_restored', function( $product, $arg2, $total ) {
	// Your code runs here.
}, 10, 3 );

// Change a value TierStep is about to use
add_filter( 'commercewp_woo_tierstep_detected_legal_plugins', function( $names ) {
	// Change $names here.
	return $names;
}, 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/class-commercewp-woo-tierstep-price-reduction.php line 105
    /**
     * Filter the EU country list used for the 30-day lowest-price (Omnibus)
     * display.
     */
    apply_filters( 'commercewp_woo_tierstep_eu_countries', array_values( array_unique( array_map( 'strtoupper', $eu ) ) ) );
  • includes/class-commercewp-woo-tierstep-compat-eu-legal.php line 200
    /**
     * Whether another plugin already shows the lowest price of the last 30 days
     * for TierStep's reduced prices, outside the price HTML.
     */
    apply_filters( 'commercewp_woo_tierstep_external_lowest_price', false, self::detected() );
  • includes/class-commercewp-woo-tierstep-compat-eu-legal.php line 147
    /**
     * Regular expression that recognizes another plugin's lowest-price statement
     * in price HTML or a price label.
     */
    apply_filters( 'commercewp_woo_tierstep_lowest_price_pattern', '/lowest|niedrigst|g(?:ü|ue)nstigst/iu' );
  • includes/class-commercewp-woo-tierstep-campaign.php line 52
    /**
     * Filter the maximum number of tiers a campaign may define.
     */
    apply_filters( 'commercewp_woo_tierstep_max_tiers', self::MAX_TIERS );
  • includes/class-commercewp-woo-tierstep-storefront.php line 385
    /**
     * Filter the storefront notice text. Return '' to hide it.
     */
    apply_filters( 'commercewp_woo_tierstep_notice_text', $text, $product, $state['tier'], $left );
  • includes/class-commercewp-woo-tierstep-refunds.php line 173
    /**
     * Fires after refunded units are given back to a campaign (or taken back, with
     * negative $units, when the order is cancelled or removed).
     */
    do_action( 'commercewp_woo_tierstep_units_restored', $product, (int) $units, $total );
  • includes/admin/class-commercewp-woo-tierstep-admin-product-campaign.php line 242
    /**
     * Reuses WooCommerce core's own existing 'woocommerce_date_input_html_pattern'
     * filter (not a hook this plugin defines) so this field's pattern attribute
     * stays consistent with every other WC admin date input.
     */
    apply_filters( 'woocommerce_date_input_html_pattern', '[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])' );

Generated from TierStep's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: