Qtyra Quantity Rules & Tiered Pricing 1.0.5 has 7 actions and 20 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.
// Run your own code when Qtyra Quantity Rules & Tiered Pricing fires an action
add_action( 'qmtp_booted', function( $object ) {
// Your code runs here.
}, 10, 1 );
// Change a value Qtyra Quantity Rules & Tiered Pricing is about to use
add_filter( 'qmtp_available_variation', function( $data, $variation, $rule ) {
// Change $data here.
return $data;
}, 10, 3 );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 per-variation rule payload. */ apply_filters( 'qmtp_available_variation', $data, $variation, $rule ); -
/** * Fires once every plugin component is registered. */ do_action( 'qmtp_booted', $this ); -
/** * Filter the tier-adjusted unit price for a cart item. */ apply_filters( 'qmtp_cart_item_price', $adjusted, $base, $qty, $product ); -
/** * Filter the deduplicated list of cart problems. */ apply_filters( 'qmtp_cart_problems', $problems ); -
/** * Filter a default message template. */ apply_filters( 'qmtp_default_message_template', $template, $type ); -
/** * Lets a site switch a PRO feature off (e.g. from a mu-plugin). It can never * switch one on — licensing stays the single source of truth. */ apply_filters( 'qmtp_feature_enabled', true, $feature ); -
/** * Filter the data object passed to frontend.js. */ apply_filters( 'qmtp_frontend_script_data', $data ); -
/** * Filter the merged raw fragment before it is normalised into a QMTP_Rule. */ apply_filters( 'qmtp_merged_fragment', $merged, $product, $variation, $context ); -
/** * Filter a rendered customer message. */ apply_filters( 'qmtp_message', $text, $type, $replacements ); -
/** * Allow stores to keep "sold individually" authoritative. */ apply_filters( 'qmtp_override_sold_individually', true, $product ); -
/** * Short-circuit the checker (return an array like check() would, or null). */ apply_filters( 'qmtp_pre_check_quantity', null, $rule, $qty, $product ); -
/** * Filter the raw tier rows resolved for a product. */ apply_filters( 'qmtp_product_tiers', $rows, $product ); -
/** * Filter the final quantity input args. */ apply_filters( 'qmtp_quantity_input_args', $args, $product, $rule ); -
/** * Filter the final rule object. */ apply_filters( 'qmtp_rule', $rule, $product, $variation, $context ); -
/** * Fires on the daily maintenance cron event. */ do_action( 'qmtp_run_maintenance' ); -
/** * Hook for version specific migrations. */ do_action( 'qmtp_upgrade', $installed ); -
/** * Filter the add-to-cart validation result. */ apply_filters( 'qmtp_validate_add_to_cart', $result, $target, $new_total, $rule ); -
apply_filters( 'qmtp_default_settings', $defaults ); -
do_action( 'qmtp_fs_loaded' ); -
apply_filters( 'qmtp_get_setting', $value, $key ); -
apply_filters( 'qmtp_load_frontend_assets', false ); -
do_action( 'qmtp_saved_product_rules', $product_id ); -
do_action( 'qmtp_saved_variation_rules', $variation_id ); -
do_action( 'qmtp_settings_saved', $current_section ); -
apply_filters( 'qmtp_tier_table_template', $located ); -
apply_filters( "woocommerce_get_sections_{$this->id}", $sections ); -
apply_filters( "woocommerce_get_settings_{$this->id}", $settings, $current_section );
Generated from Qtyra Quantity Rules & Tiered Pricing'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: