YayPricing 3.6.2 has 22 actions and 84 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 YayPricing fires an action
add_action( 'post_edd_sl_plugin_updater_setup', function( $edd_plugin_data ) {
// Your code runs here.
}, 10, 1 );
// Change a value YayPricing is about to use
add_filter( 'yaydp_modify_third_party_price_data', function( $value, $arg2, $product ) {
// Change $value here.
return $value;
}, 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
-
/** * Filters whether YayPricing replaces the price exposed to a third-party * integration. */ apply_filters( 'yaydp_modify_third_party_price_data', true, 'gtm4wp', $product ); -
/** * Fires after the $edd_plugin_data is setup. */ do_action( 'post_edd_sl_plugin_updater_setup', $edd_plugin_data ); -
/** * Legacy admin search for a product filter's values. */ apply_filters( "yaydp_admin_custom_filter_{$slug}_result", array(), $slug, $search, $page, $limit ); -
/** * Legacy admin registration of a product filter type. */ apply_filters( 'yaydp_admin_product_filters', array() ); -
/** * Allow third-party to re-group the counted quantities, e.g. group by parent * product + an attribute value. Each group must keep the shape: array( * 'quantity' => float, 'items' => array of cart items ). */ apply_filters( 'yaydp_bulk_pricing_quantity_groups', $products_quantities, $this, $cart ); -
/** * Legacy evaluation hook for a condition registered via * `yaydp_extra_conditions`. */ apply_filters( "yaydp_check_{$this->slug()}_condition", false, $condition, $ctx ); -
/** * Legacy evaluation hook for a product filter registered via * `yaydp_admin_product_filters`. */ apply_filters( "yaydp_check_condition_by_{$this->slug()}", false, $product, $filter ); -
/** * Add or replace picker collections. */ apply_filters( 'yaydp_collections', $core ); -
/** * Legacy admin registration of a condition type. */ apply_filters( 'yaydp_extra_conditions', array() ); -
/** * Legacy matching-products lookup for a product filter. */ apply_filters( "yaydp_get_matching_products_by_{$slug}", array(), $slug, $values, $comparation ); -
/** * Filters the priority of YayPricing's price HTML filter. */ apply_filters( 'yaydp_price_html_priority', 100000 ); -
/** * Register additional condition types. */ do_action( 'yaydp_register_conditions', $this ); -
/** * Register additional product filter types. */ do_action( 'yaydp_register_product_filters', $this ); -
/** * Filters the order statuses whose orders are counted by the report. */ apply_filters( 'yaydp_report_counted_order_statuses', $statuses ); -
/** * Allow third-party to re-group the counted quantities, e.g. group by parent * product + an attribute value. Each group must keep the shape: array( * 'quantity' => float, 'items' => array of cart items ). */ apply_filters( 'yaydp_tiered_pricing_quantity_groups', $products_quantities, $this, $cart ); -
/** * Filters whether the discounted price renders with the labeled two-line * layout. */ apply_filters( 'yaydp_use_two_lines_discounted_price', false, $product ); -
apply_filters( 'yaydp_product_pricing_encouraged_notice_action', $action, $this->get_raw_content(), 'product_missing_quantity', $missing_quantity, $product_link, $raw_content ); -
do_action( 'wpml_register_single_string', 'yaypricing', "pricing_table_{$key}", $title ); -
apply_filters( 'yaydp_cart_discount_encouraged_notice_action', $action, $this->get_raw_content(), $condition_encouragement['type'], $missing_value ); -
apply_filters( 'yaydp_checkout_fee_encouraged_notice_action', $action, $this->get_raw_content(), $condition_encouragement['type'], $missing_value ); -
apply_filters( 'yaydp_can_current_user_see_discount_rule', true ); -
apply_filters( 'yaydp_translated_list_object_id', $values, $taxonomy ); -
apply_filters( 'yaydp_cart_item_price_html', $html, $cart_item ); -
apply_filters( 'wpml_object_id', $role->ID, 'post', true ); -
apply_filters( 'yaydp_reversed_price', $price ); -
apply_filters( 'yaycommerce_licensing_plugins', [] ); -
apply_filters( 'yaydp_cart_item_subtotal_html', $html, $cart_item ); -
apply_filters( 'yaydp_extra_item_text', __( 'Free', 'yaypricing' ) ); -
apply_filters( 'yaydp_initial_product_price', floatval( $product_price ), $product ); -
apply_filters( 'yaydp_other_source_product_base_price', floatval( $product->get_regular_price() ), $product ); -
apply_filters( 'edd_sl_api_request_verify_ssl', \true, $this ); -
do_action( "in_plugin_update_message-{$file}", $plugin, $version_info ); -
do_action( 'litespeed_purge_all' ); -
apply_filters( 'thwepo_cart_item_extra_price_request_data', $data, $cart_item ); -
apply_filters( 'thwepo_extra_cost_dynamic_unit_price', $price, $name, $product_price, $price_type ); -
apply_filters( 'thwepo_extra_cost_exclude_base_price', false, $product_id ); -
apply_filters( 'thwepo_extra_cost_exclude_base_price_single', $exclude, $product_id, $field_name ); -
apply_filters( 'thwepo_extra_cost_quantity', $quantity, $name, $value ); -
apply_filters( "thwepo_extra_cost_quantity_{$name}", $quantity, $value ); -
apply_filters( "thwepo_extra_cost_unit_price_type_range_{$name}", false ); -
apply_filters( 'thwepo_formated_custom_formula', $custom_formula, $product_info ); -
apply_filters( 'thwepo_product_field_extra_cost', $fprice, $name, $price_info, $product_info, $price_type ); -
apply_filters( "thwepo_product_field_extra_cost_{$name}", $fprice, $product_price, $price_info, $price_type ); -
apply_filters( 'thwepo_product_field_extra_price_single', $fprice, $price_info, $product_info ); -
apply_filters( 'thwepo_product_field_price', $price, $price_type, $name, $price_info, $index ); -
apply_filters( 'wapf/pricing/cart_item_base_for_formulas', $base, $product, $quantity, $cart_item ); -
do_action( 'woocommerce_before_calculate_totals', \WC()->cart ); -
apply_filters( 'woocommerce_grouped_free_price_html', __( 'Free!', 'woocommerce' ), $product ); -
apply_filters( 'woocommerce_grouped_price_html', $price . $product->get_price_suffix(), $product, $child_prices ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_translate_single_string', $text, $context, $name ); -
apply_filters( 'yay_currency_woocommerce_currency_priority', 10 ); -
apply_filters( 'yay_recommended_plugins_excluded', self::get_other_plugins() ); -
do_action( 'yaycommerce_admin_shell_booted', $instance ); -
do_action( 'yaycommerce_admin_shell_license_enabled', $adapter ); -
apply_filters( 'yaycommerce_admin_shell_plugin_info', $info, $info->slug ); -
do_action( 'yaycommerce_licenses_page' ); -
apply_filters( 'yaydp_admin_extra_localize_data', array() ); -
do_action( 'yaydp_after_calculate_cart_discount' ); -
do_action( 'yaydp_after_calculate_checkout_fee' ); -
do_action( 'yaydp_after_calculate_product_pricing' ); -
do_action( 'yaydp_after_initial_cart_item', $cart_item_data, $this ); -
do_action( 'yaydp_after_saving_data', $body ); -
do_action( 'yaydp_after_set_cart_item_price', $item, $item_key ); -
do_action( 'yaydp_before_calculate_cart_discount' ); -
do_action( 'yaydp_before_calculate_checkout_fee' ); -
do_action( 'yaydp_before_calculate_product_pricing' ); -
do_action( 'yaydp_before_set_cart_item_price', $item, $item_key ); -
apply_filters( 'yaydp_cart_discount_subtotal', $cart->get_cart_subtotal(), $cart ); -
apply_filters( 'yaydp_cart_item_price_in_shopper_currency', false, $cart_item ); -
apply_filters( 'yaydp_cart_subtotal_html', $cart_subtotal, $compound ); -
apply_filters( 'yaydp_cart_total_html', wc_price( $final_total ), $final_total ); -
apply_filters( 'yaydp_change_price_html', true ); -
apply_filters( 'yaydp_checkout_coupon_fee_html', $discount_amount_html, $coupon_html ); -
apply_filters( 'yaydp_checkout_fee_taxable', $default_taxable, $this->get_id(), $this->get_name(), $discount_amount, $tax_class ); -
do_action( 'yaydp_clear_cache' ); -
apply_filters( 'yaydp_converted_fee', $price ); -
apply_filters( 'yaydp_converted_price', $price ); -
apply_filters( 'yaydp_discount_based_on_other_source', false ); -
apply_filters( 'yaydp_extra_cart_item_quantity_input_args', $args, $cart_item ); -
apply_filters( 'yaydp_extra_cart_item_remove_link', '', $html, $cart_item ); -
apply_filters( 'yaydp_extra_cart_item_subtotal', $subtotal, $html, $cart_item ); -
apply_filters( 'yaydp_gift_badge_text', __( 'Free gift', 'yaypricing' ) ); -
apply_filters( 'yaydp_gift_panel_colspan', 6 ); -
apply_filters( 'yaydp_gift_panel_offset_columns', 1 ); -
apply_filters( 'yaydp_init_cart_items', $cart_items ); -
apply_filters( 'yaydp_initial_cart_item_price', $initial_price, $cart_item_data ); -
apply_filters( 'yaydp_mini_cart_item_quantity_html', $quantity_html, $cart_item, $cart_item_key ); -
apply_filters( 'yaydp_prevent_recalculate_cart_discount', false ); -
apply_filters( 'yaydp_pricing_context_key', $role . '|' . $currency . '|' . $tax_display ); -
apply_filters( 'yaydp_pricing_table_base_price', $base, $this->product ); -
apply_filters( 'yaydp_pricing_table_discount_text', \yaydp_get_formatted_pricing_value( $discount_value, $pricing_type ), $this->product, $discount_value ); -
apply_filters( 'yaydp_pricing_table_discounted_price_text', \wc_price( $discounted_price ), $this->product, $discount_amount ); -
apply_filters( 'yaydp_pricing_table_layout', $this->settings->get_pricing_table_layout(), $this->product, $this->rule ); -
apply_filters( 'yaydp_pricing_table_quantity_text', $quantity_text, $min_quantity, $max_quantity ); -
apply_filters( 'yaydp_pricing_table_saving_text', $text, $row['saving_percent'], $this->product ); -
apply_filters( 'yaydp_pricing_table_show_max_quantity', true ); -
apply_filters( 'yaydp_pricing_table_tier_label', $label, $min_quantity, $max_quantity ); -
apply_filters( 'yaydp_product_applicability_check', true, $product, $filters, $match_type, $item_key, $rule ); -
apply_filters( 'yaydp_product_fixed_price', $price, $product ); -
apply_filters( 'yaydp_randomize_free_items', true ); -
do_action( 'yaydp_remove_3rd_currency_format' ); -
apply_filters( 'yaydp_sale_tag', $html, $product, $min_percent_discount, $max_percent_discount ); -
apply_filters( 'yaydp_skip_product_pricing_rule', false, $this, $product ); -
apply_filters( 'yaydp_tiered_pricing_tier_group_key', $product->get_parent_id(), $item, $this );
Generated from YayPricing'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: