WC Price History 3.2.9 has 3 actions and 8 filters, read directly from its source code on Nov 18, 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.
// Run your own code when WC Price History fires an action
add_action( 'wc_price_history_settings_page_fields', function( $settings ) {
// Your code runs here.
}, 10, 1 );
// Change a value WC Price History is about to use
add_filter( 'wc_price_history_lowest_price_html_raw_value_taxed', function( $lowest, $wc_product ) {
// Change $lowest here.
return $lowest;
}, 10, 2 );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
-
/** * Filter the lowest price raw value before displaying it as HTML (taxes * already applied). */ apply_filters( 'wc_price_history_lowest_price_html_raw_value_taxed', $lowest, $wc_product ); -
/** * Filter candidate prices used to compute the lowest price in the sale-start * window. */ apply_filters( 'wc_price_history_sale_start_window_candidates', $candidates, $wc_product, $cutoff_timestamp, $sale_start_timestamp ); -
/** * Filter the display text from template. */ apply_filters( 'wc_price_history_display_from_template', $display_text, $lowest, $days_number ); -
/** * Filter if the price HTML should be displayed on the current screen. */ apply_filters( 'wc_price_history_is_correct_place', $is_correct, $wc_product ); -
/** * Filter if the price HTML should not be displayed when conditions are not met * (eg. it is set to display only on sale and product is not on sale). */ apply_filters( 'wc_price_history_is_not_correct_when', $is_not_correct_when, $wc_product ); -
/** * Filter the lowest price HTML before displaying it. */ apply_filters( 'wc_price_history_lowest_price_html_pre', false, $wc_product ); -
/** * Action to add custom fields to settings page. */ do_action( 'wc_price_history_settings_page_fields', $settings ); -
/** * Filter the lowest price for variations. */ apply_filters( 'wc_price_history_variations_add_history_lowest_price', $lowest, $variation_attributes, $product_variable, $variation ); -
apply_filters( 'wc_price_history_price_raw_non_taxed', (float) $product->get_price(), $product ); -
do_action( 'wc_price_history_settings_page_danger_zone' ); -
do_action( 'wc_price_history_settings_page_rate_us_text' );
Generated from WC Price History'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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: