YayCurrency 3.3.5 has 27 actions and 157 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.
// Run your own code when YayCurrency fires an action
add_action( 'post_edd_sl_plugin_updater_setup', function( $edd_plugin_data ) {
// Your code runs here.
}, 10, 1 );
// Change a value YayCurrency is about to use
add_filter( 'yay_currency_convert_price', function( $original_price, $apply_currency ) {
// Change $original_price here.
return $original_price;
}, 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
-
/** * Fires after the $edd_plugin_data is setup. */ do_action( 'post_edd_sl_plugin_updater_setup', $edd_plugin_data ); -
apply_filters( 'yay_currency_convert_price', $original_price, $apply_currency ); -
apply_filters( 'yay_currency_revert_price', $wapf_item_price['options_total'], $apply_currency ); -
apply_filters( 'YayCurrency/StoreCurrency/GetCartSubtotal', 0 ); -
apply_filters( 'yay_currency_will_not_round_shipping_cost', false ); -
apply_filters( 'YayCurrency/ApplyCurrency/GetCartSubtotal', 0, $apply_currency ); -
apply_filters( 'yay_currency_get_shipping_cost', $rate['cost'], $method, $this->apply_currency ); -
apply_filters( 'yay_currency_param_name', 'yay-currency' ); -
apply_filters( 'YayCurrency/ApplyCurrency/ThirdPlugins/GetProductPrice', $convert_cart_product_item_price, $product, $this->apply_currency ); -
apply_filters( 'YayCurrency/Frontend/Switcher/GetCurrencyCode', $currency_info['currency'] ); -
apply_filters( 'woocommerce_order_shipping_to_display_tax_label', ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>', $order, $tax_display ); -
do_action( 'yay_currency_after_change_currency_switcher', $apply_currency, $old_apply_currency ); -
do_action( 'yay_currency_before_change_currency_switcher', $_POST ); -
apply_filters( 'yay_currency_keep_first_price_subscription', true ); -
apply_filters( 'yay_currency_should_skip_approximate_price', false ); -
apply_filters( 'yay_currency_sync_currencies', array_keys( $currencies ) ); -
apply_filters( 'yay_currency_woocommerce_currency', $currency, $this->is_dis_checkout_diff_currency ); -
apply_filters( 'yay_currency_woocommerce_currency_symbol', $currency_symbol, $currency, $apply_currency ); -
apply_filters( 'yaycommerce_licensing_plugins', [] ); -
apply_filters( 'YayCurrency/ApplyCurrency/ByCartItem/GetProductPrice', $product_price, $cart_item, $apply_currency ); -
apply_filters( 'YayCurrency/ApplyCurrency/GetCartSubtotalWithShipping', 0, $apply_currency ); -
apply_filters( 'YayCurrency/Checkout/PaymentMethods/GetNotice', '', $this->currencies_data, Helper::get_current_theme() ); -
apply_filters( 'YayCurrency/Frontend/Switcher/ByCurrencyCode/GetFlagUrl', $selected_flag_url, $selected_currency['currency'] ); -
apply_filters( 'YayCurrency/GetCouponAmount', $converted_coupon_price, $coupon, $this->apply_currency ); -
apply_filters( 'YayCurrency/PostType/GetCurrencies', Helper::get_currencies_post_type() ); -
apply_filters( 'YayCurrency/SelectedCurrency/GetId', YayCurrencyHelper::get_id_selected_currency() ); -
apply_filters( 'YayCurrency/StoreCurrency/GetCouponAmount', $price, $coupon, $this->currencies_data ); -
apply_filters( 'YayCurrency/StoreCurrency/GetPrice', $product->get_price( 'edit' ), $product ); -
apply_filters( 'b2bking_b2b_group_for_pricing', b2bking()->get_user_group( $user_id ), $user_id, $product->get_id() ); -
apply_filters( 'b2bking_cart_item_quantity_tiers', $cart_item['quantity'], $cart_item['variation_id'], $cart_item['product_id'] ); -
apply_filters( 'b2bking_tiered_pricing_count_total_qty', $cart_item['quantity'], $cart_item ); -
apply_filters( 'b2bking_tiered_pricing_uses_total_cart_qty', false ); -
apply_filters( 'bm_bulk_prices', array( 'global' => get_post_meta( $fallback_group_id, 'bm_bulk_prices', true ), 'group' => get_post_meta( $group_id, 'bm_bulk_prices', true ), 'product' => get_post_meta( $product_id, 'bm_' . $group_slug . '_bulk_prices', true ), 'all_customers' => get_post_meta( $product_id, 'bm_' . $fallback_group_slug . '_bulk_prices', true ), ) ); -
apply_filters( 'bm_force_product_price', false, $product_id, $group_id ); -
apply_filters( 'bm_group_prices', array( 'global' => get_post_meta( $fallback_group_id, 'bm_group_prices', true ), 'group' => get_post_meta( $group_id, 'bm_group_prices', true ), 'product' => get_post_meta( $product_id, 'bm_' . $group_slug . '_group_prices', true ), 'all_customers' => get_post_meta( $product_id, 'bm_' . $fallback_group_slug . '_group_prices', true ), ) ); -
apply_filters( 'bm_use_regular_for_group_price', false ); -
apply_filters( 'edd_sl_api_request_verify_ssl', \true, $this ); -
do_action( "in_plugin_update_message-{$file}", $plugin, $version_info ); -
apply_filters( 'wc_epo_get_currency_price', $matches[1], $currency, '' ); -
apply_filters( 'woo_payment_discounts_apply_discount', 0 < $value, $cart ); -
do_action( 'woocommerce_analytics_update_coupon', $item->coupon_id, $item->order_id ); -
do_action( 'woocommerce_analytics_update_product', $item->order_item_id, $item->order_id ); -
do_action( 'woocommerce_analytics_update_tax', $item->tax_rate_id, $item->order_id ); -
apply_filters( 'woocommerce_bookings_resource_duration_display_string', $duration_display, $product ); -
apply_filters( 'woocommerce_get_order_item_totals_excl_free_fees', empty( $fee['line_total'] ) && empty( $fee['line_tax'] ), $id ); -
apply_filters( 'woocommerce_order_shipping_to_display_shipped_via', ' <small class="shipped_via">' . sprintf( __( 'via %s', 'woocommerce' ), $order->get_shipping_method() ) . '</small>', $order ); -
apply_filters( 'woocommerce_product_addons_adjust_price', true, $cart_item_data ); -
apply_filters( 'woocommerce_product_get_price', $display_price, $product ); -
apply_filters( 'woodmart_update_fragments_fix', true ); -
apply_filters( 'yay_currency_apply_currency', $apply_currency ); -
apply_filters( 'yay_currency_available_gateways', $available_gateways, $this->apply_currency ); -
apply_filters( 'yay_currency_before_calculate_totals_ignore_price_conversion', $flag, $price, $product ); -
apply_filters( 'yay_currency_callback_localize_args', $localize_args ); -
apply_filters( 'yay_currency_check_disable_fallback_option_in_checkout_page', true ); -
apply_filters( 'yay_currency_checkout_converted_approximately', true, $apply_currency ); -
apply_filters( 'yay_currency_checkout_get_original_price_wc_subscriptions', $original_price, $product ); -
apply_filters( 'yay_currency_checkout_get_subtotal_price', (float) WC()->cart->get_displayed_subtotal(), $this->apply_currency ); -
apply_filters( 'yay_currency_convert_all_orders_to_base', get_option( 'yay_currency_orders_synced_to_base', 'no' ) ); -
apply_filters( 'yay_currency_coupon_types', array( 'percent' ), $coupon ); -
do_action( 'yay_currency_deactivate' ); -
apply_filters( 'yay_currency_detect_action_args', $action_args ); -
apply_filters( 'yay_currency_detect_current_currency', $apply_currency ); -
apply_filters( 'yay_currency_detect_reload_with_ajax', false ); -
apply_filters( 'yay_currency_detect_wc_ajax_args', $wc_ajax_args ); -
apply_filters( 'yay_currency_disable_convert_ywgc_amount', false ); -
apply_filters( 'yay_currency_disable_fallback_checkout_conditions', false ); -
apply_filters( 'yay_currency_display_approximate_price_checkout_only', false ); -
apply_filters( 'yay_currency_dokan_seller_balance_debit', $balance_debit, $order_id, $seller_id, $balance_date, $only_get_price_default ); -
apply_filters( 'yay_currency_dokan_seller_withdrawals', $withdraw, $seller_id, $balance_date ); -
do_action( 'yay_currency_enqueue_scripts' ); -
apply_filters( 'yay_currency_fee_priority', $priority ); -
apply_filters( 'yay_currency_format_filters_priority', $priority ); -
apply_filters( 'yay_currency_get_flag_by_country_code', $flag_url, $country_code ); -
apply_filters( 'yay_currency_get_original_shipping_cost', $shipping_cost, $this->apply_currency ); -
apply_filters( 'yay_currency_get_price_by_currency', $price, $product, $this->apply_currency ); -
apply_filters( 'yay_currency_get_price_format', $args ); -
apply_filters( 'yay_currency_is_cart_fees_original', true, $this->apply_currency ); -
apply_filters( 'yay_currency_is_original_default_currency', false, $this->apply_currency ); -
apply_filters( 'yay_currency_is_original_format_order_item_totals', $flag, $total_rows, $order, $tax_display ); -
apply_filters( 'yay_currency_is_original_product_price', $flag, $price, $product ); -
apply_filters( 'yay_currency_is_original_with_3rd_plugin', false, $price, $product ); -
apply_filters( 'yay_currency_limit_sync_orders_to_base', 200 ); -
apply_filters( 'yay_currency_minicart_contents_class', 'a.cart-contents', $localize_args ); -
do_action( 'yay_currency_order_info_data', $order_id, $yay_order ); -
apply_filters( 'yay_currency_order_rate', $parent_order_id, 1, $this->converted_currency ); -
apply_filters( 'yay_currency_orders_args', $orders_args ); -
apply_filters( 'yay_currency_post_type_orders_args', $args ); -
apply_filters( 'yay_currency_product_price_3rd_with_condition', false, $product ); -
apply_filters( 'yay_currency_product_prices_filters_priority', $priority ); -
do_action( 'yay_currency_rest_api_endpoints' ); -
apply_filters( 'yay_currency_revert_orders_to_base', $flag ); -
do_action( 'yay_currency_set_cart_contents', $cart_contents, $cart_item_key, $cart_item, $this->apply_currency ); -
apply_filters( 'yay_currency_should_show_approximate_price', false ); -
apply_filters( 'yay_currency_use_default_default_currency_symbol', $flag, $is_dis_checkout_diff_currency, $apply_currency ); -
apply_filters( 'yay_currency_use_params', false ); -
apply_filters( 'yay_dokan_approximately_price', true ); -
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( 'yaycurrency_formatted_price_by_currency', $return, $price, $format, $apply_currency ); -
apply_filters( 'yaycurrency_formatted_sale_price_by_currency', $formatted_price, $regular_price, $sale_price, $apply_currency ); -
apply_filters( 'yaycurrency_get_price', $price ); -
apply_filters( 'yaycurrency_get_price_html', $price_html, $apply_currency ); -
apply_filters( 'YayCurrency/Admin/ReportQuery/GetCurrencyCode', $currency ); -
apply_filters( 'YayCurrency/ApplyCurrency/ByCartItem/GetPriceOptions', 0, $cart_item, $product_id, $product_price, $apply_currency ); -
apply_filters( 'YayCurrency/ApplyCurrency/GetDiscountTotal', 0, $apply_currency ); -
apply_filters( 'YayCurrency/ApplyCurrency/GetPriceOptions', 0, $product ); -
apply_filters( 'YayCurrency/ApplyCurrency/ThirdPlugins/GetCartSubtotal', $subtotal, $apply_currency ); -
apply_filters( 'YayCurrency/Barn2/GetCategoryPricing', $product, $role ); -
apply_filters( 'YayCurrency/Barn2/GetGlobalPricing', $product, $role ); -
apply_filters( 'YayCurrency/Barn2/GetProductPricing', $product, $role ); -
apply_filters( 'YayCurrency/Cache/Transient/Currencies', $yay_currencies ); -
apply_filters( 'YayCurrency/Checkout/ApplyCurrency/Discount/GetFormattedPrice', $formatted_discount_price, $coupon, $apply_currency ); -
apply_filters( 'YayCurrency/Checkout/ApplyCurrency/GetConvertedCartTotal', $converted_total, $total_price, $this->apply_currency ); -
apply_filters( 'YayCurrency/Checkout/ApplyCurrency/GetConvertedSubtotal', $converted_subtotal, $this->apply_currency ); -
apply_filters( 'YayCurrency/Checkout/ApplyCurrency/GetConvertedTotalTax', $formatted_converted_tax_amount, $tax_info, $this->apply_currency ); -
YayCurrency/Checkout/ApplyCurrency/GetFormattedConvertedTaxesTotal
filter Copy link Customise this hookapply_filters( 'YayCurrency/Checkout/ApplyCurrency/GetFormattedConvertedTaxesTotal', $converted_taxes_total_html, $this->apply_currency ); -
apply_filters( 'YayCurrency/Checkout/FallbackCurrency/GetCartTotal', $original_total, $total_price, $this->currencies_data['fallback_currency'] ); -
apply_filters( 'YayCurrency/Checkout/FallbackCurrency/GetFormattedTaxesTotal', $taxes_total_html, $taxes_total, $this->currencies_data['fallback_currency'] ); -
apply_filters( 'YayCurrency/Checkout/FallbackCurrency/GetTaxAmount', $fallback_tax_amount, $tax_amount, $tax_info->tax_rate_id, $this->currencies_data['fallback_currency'] ); -
apply_filters( 'YayCurrency/Checkout/GetFormattedCoupon', $coupon_html, $coupon, $this->currencies_data['fallback_currency'], $this->apply_currency ); -
do_action( 'YayCurrency/Checkout/PaymentMethods/AfterNotice', $this->currencies_data ); -
apply_filters( 'YayCurrency/Checkout/PaymentMethods/AllowAddNotice', true, $this->apply_currency ); -
do_action( 'YayCurrency/Checkout/PaymentMethods/BeforeNotice', $this->currencies_data ); -
apply_filters( 'YayCurrency/Checkout/PaymentMethods/GetNoticeHtml', $notice_html, $currencies_data, $current_theme ); -
apply_filters( 'YayCurrency/Checkout/Shipping/FlatRateFee/GetFormattedPrice', $formatted_shipping_fee, $method, $apply_currency ); -
apply_filters( 'YayCurrency/Checkout/Shipping/GetFormattedLabel', $label, $method, $shipping_fee, $this->currencies_data['fallback_currency'], $this->apply_currency ); -
apply_filters( 'YayCurrency/Checkout/StoreCurrency/GetCartTotal', (float) WC()->cart->total ); -
apply_filters( 'YayCurrency/ConvertPrice/NotPermitted', false ); -
apply_filters( 'YayCurrency/Currency/IsHandledDelete', false, $currency->ID ); -
apply_filters( 'YayCurrency/Data/CountryCurrencyMaps', $countries_code ); -
apply_filters( 'YayCurrency/Data/GetGeneralSettings', $settings ); -
do_action( 'YayCurrency/Data/SetCheckoutOptions', $checkout_options ); -
do_action( 'YayCurrency/Data/SetDisplayOptions', $display_options ); -
apply_filters( 'YayCurrency/Detect/AllowGetPriceByConditions', false, $product, $this->apply_currency ); -
apply_filters( 'YayCurrency/Detect/Ignore/ShippingMethods', $shipping_methods_args ); -
apply_filters( 'YayCurrency/Detect/Ignore/SpecialMethods', $special_methods_args ); -
apply_filters( 'YayCurrency/Detect/ShippingCost/IsStoreCurrency', false, $this->apply_currency ); -
apply_filters( 'YayCurrency/DisableDecimalSeparator', false ); -
apply_filters( 'YayCurrency/DisableNumberDecimal', false ); -
apply_filters( 'YayCurrency/DisableThousandSeparator', false ); -
apply_filters( 'YayCurrency/Except/ThirdPlugins/Class', $except_class_plugins ); -
apply_filters( 'YayCurrency/Except/ThirdPlugins/GetPrice', $price, $product, $this->apply_currency ); -
apply_filters( 'YayCurrency/ExclTax/Enable', false ); -
apply_filters( 'YayCurrency/Fallbacks/GetFlags', array( 'default' => YAY_CURRENCY_PLUGIN_URL . 'assets/flags/default.svg', ) ); -
apply_filters( 'YayCurrency/FromShippingMethod/GetDataInfo', $data, $method->method_id, $package['contents_cost'], $this->apply_currency ); -
apply_filters( 'YayCurrency/Frontend/GetLocalizeArgs', $localize_args ); -
apply_filters( 'YayCurrency/GetDecimalSeparator', $decimal_separator, $apply_currency ); -
apply_filters( 'YayCurrency/GetFeeAmount', $amount, $fee ); -
apply_filters( 'YayCurrency/GetNumberDecimal', $number_decimal, $apply_currency ); -
apply_filters( 'YayCurrency/GetThousandSeparator', $thousand_separator, $apply_currency ); -
apply_filters( 'YayCurrency/InclTax/Enable', false ); -
apply_filters( 'YayCurrency/InclTax/GetShippingFee', $shipping_fee, $method, $apply_currency ); -
apply_filters( 'YayCurrency/LearnPress/StoreCurrency/CoursePrice/IsDefault', false ); -
do_action( 'YayCurrency/ManualOrder/CouponLines', $order, $apply_currency, $this->parent_rate_fee ); -
do_action( 'YayCurrency/ManualOrder/FeeLines', $order, $apply_currency, $this->parent_rate_fee ); -
do_action( 'YayCurrency/ManualOrder/LineItems', $order, $apply_currency, $this->parent_rate_fee ); -
do_action( 'YayCurrency/ManualOrder/SetOrderData', $order, $new_rate_fee, $currency_code ); -
do_action( 'YayCurrency/ManualOrder/ShippingLines', $order, $apply_currency, $this->parent_rate_fee ); -
do_action( 'YayCurrency/ManualOrder/TaxLines', $order, $apply_currency, $this->parent_rate_fee ); -
do_action( 'YayCurrency/ManualOrder/Totals', $order, $apply_currency, $this->parent_rate_fee ); -
apply_filters( 'YayCurrency/Order/AllowChange/FormattedLineSubtotal', true, $subtotal, $item, $order ); -
apply_filters( 'YayCurrency/Order/SkipTotalFormatting', false ); -
apply_filters( 'YayCurrency/ProductAddons/CartItem/GetAddonData', $cart_item_addon_data_value, $args, $cart_item, $addon, $this->apply_currency ); -
do_action( 'YayCurrency/RedirectToUrl', $current_url, $selected_currency_id ); -
apply_filters( 'YayCurrency/Round/Price', true ); -
apply_filters( 'YayCurrency/Round/Type', PHP_ROUND_HALF_UP ); -
apply_filters( 'YayCurrency/StoreCurrency/ByCartItem/GetPriceOptions', 0, $cart_item, $product_id, $product_price ); -
apply_filters( 'YayCurrency/StoreCurrency/ByCartItem/GetProductPrice', $product_price, $cart_item ); -
apply_filters( 'YayCurrency/StoreCurrency/GetCartSubtotalWithShipping', 0 ); -
apply_filters( 'YayCurrency/StoreCurrency/GetPriceOptions', 0, $product ); -
apply_filters( 'YayCurrency/StoreCurrency/GetTotalTax', 0, $apply_currency ); -
apply_filters( 'YayCurrency/Tax/InCart/GetRatePercent', false ); -
apply_filters( 'YayCurrency/ThirdPlugins/GetPrice', $price, $product, $this->apply_currency ); -
apply_filters( 'YayCurrency/ThirdPlugins/Rounding/Enable', false ); -
apply_filters( 'YayCurrency/WooBlocks/IsCheckout', false ); -
YayCurrency/WooCommerceTMExtraProductOptions/DisableEnabledCurrencies
filter Copy link Customise this hookapply_filters( 'YayCurrency/WooCommerceTMExtraProductOptions/DisableEnabledCurrencies', false ); -
apply_filters( 'YayCurrency/WooDiscountRules/Active', false ); -
apply_filters( 'ydp_check_adjust_price', false ); -
apply_filters( 'yith_wapo_remove_spaces', false ); -
apply_filters( 'yith_wapo_show_options_grouped_in_cart', true ); -
apply_filters( 'yith_wcbk_process_multi_currency_price_for_product', true, $product );
Generated from YayCurrency'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: