WPML Multilingual & Multicurrency for WooCommerce 5.6.3 has 43 actions and 136 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 WPML Multilingual & Multicurrency for WooCommerce fires an action
add_action( 'wpml_register_single_string', function( $arg1, $arg2, $comment_content, $arg4, $language ) {
// Your code runs here.
}, 10, 5 );
// Change a value WPML Multilingual & Multicurrency for WooCommerce is about to use
add_filter( 'wpml_object_id', function( $variation_id, $arg2, $arg3, $language ) {
// Change $variation_id here.
return $variation_id;
}, 10, 4 );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
-
wpml_object_id
filterapply_filters( 'wpml_object_id', $variation_id, 'product_variation', false, $language ); -
wpml_translate_single_string
filterapply_filters( 'wpml_translate_single_string', $original_title, Strings::TRANSLATION_DOMAIN, Strings::getStringName( $payment_gateway->id, 'title' ) ); -
wcml_raw_price_amount
filterapply_filters( 'wcml_raw_price_amount', $unformatted ); -
wpml_register_single_string
actiondo_action( 'wpml_register_single_string', self::CONTEXT, self::getReviewStringName( $review ), $review->comment_content, false, $language ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', null ); -
wcml_bonded_target_url
filterapply_filters( 'wcml_bonded_target_url', '', 'troubleshooting-safe' ); -
wpml_labelize_string
filterapply_filters( 'wpml_labelize_string', $group, 'TranslationJob' ); -
wcml_shipping_price_amount
filterapply_filters( 'wcml_shipping_price_amount', $rates[ $k ]->rate_cost ); -
wpml_active_languages
filterapply_filters( 'wpml_active_languages', null ); -
wpml_element_language_code
filterapply_filters( 'wpml_element_language_code', '', [ 'element_id' => Obj::prop( 'post_parent', $args ), 'element_type' => 'product_variation' ] ); -
wpml_element_trid
filterapply_filters( 'wpml_element_trid', null, $termId, 'tax_product_shipping_class' ); -
apply_filters( 'wpml_get_element_translations', null, $termTrid, 'tax_product_shipping_class' ); -
wpml_post_language_details
filterapply_filters( 'wpml_post_language_details', [], $request->get_param( 'id' ) ); -
wpml_register_string
actiondo_action( 'wpml_register_string', $string, $key, $package, sprintf( '%s %s', $string, ucfirst( $element ) ), $package->kind ); -
wpml_switch_language
actiondo_action( 'wpml_switch_language', $language ); -
wpml_translate_string
filterapply_filters( 'wpml_translate_string', $text, $key, $package ); -
do_action( 'wcml_after_duplicate_product_post_meta', $product->ID, $translationId, false ); -
wcml_client_currency
filterapply_filters( 'wcml_client_currency', wcml_get_woocommerce_currency_option() ); -
wcml_is_attributes_page
filterapply_filters( 'wcml_is_attributes_page', 'product_attributes' === $get_page ); -
wcml_price_currency
filterapply_filters( 'wcml_price_currency', wcml_get_woocommerce_currency_option() ); -
do_action( 'wpml_activate_slug_translation', $taxonomyByStringName[ $name ], $string->get_value(), WPML_Slug_Translation_Factory::TAX ); -
wpml_default_language
filterapply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_element_language_details', false, [ 'element_id' => $shippingClass->term_id, 'element_type' => $shippingClass->taxonomy, ] ); -
wpml_element_type
filterapply_filters( 'wpml_element_type', get_post_type( $productId ) ); -
wpml_is_operation
filterapply_filters( 'wpml_is_operation', false, 'make_duplicates' ); -
wpml_is_translated_taxonomy
filterapply_filters( 'wpml_is_translated_taxonomy', false, $taxonomy ); -
wcml_after_duplicate_product
actiondo_action( 'wcml_after_duplicate_product', $new_id, $post_to_duplicate ); -
do_action( 'wcml_after_save_custom_prices', $post_id, $product_price, $custom_prices, $code ); -
wcml_after_sync_product_data
actiondo_action( 'wcml_after_sync_product_data', $product->ID, $translationId, $translationsLanguages[ $translationId ] ); -
do_action( 'wcml_before_sync_product_data', $product->ID, $translationId, $translationsLanguages[ $translationId ] ); -
apply_filters( 'wcml_do_not_display_custom_fields_for_product', $this->not_display_custom_fields_for_product ); -
apply_filters( 'wcml_gateway_text_keys_to_translate', Strings::TRANSLATABLE_SETTINGS ); -
apply_filters( 'wcml_not_display_single_fields_to_translate', $this->not_display_fields_for_variables_product ); -
apply_filters( 'wcml_product_localize_image_ids_legacy_mode', false ); -
apply_filters( 'wcml_product_variations_taxonomies_to_sync', $taxonomiesToSync, $variationId, $translationId, $language ); -
apply_filters( 'wcml_switch_currency_exception', false, $storedCurrency, $initialCurrencyForLang, true ); -
apply_filters( 'wcml_update_custom_prices_values', [ '_regular_price' => $regular_price, '_sale_price' => $sale_price, '_wcml_schedule' => $schedule, '_sale_price_dates_from' => $date_from, '_sale_price_dates_to' => $date_to, ], $code, $post_id ); -
apply_filters( 'wcml_variation_term_taxonomy_ids', (array) $get_variation_term_taxonomy_ids ); -
wpml_get_setting
filterapply_filters( 'wpml_get_setting', false, 'custom_posts_unlocked_option' ); -
wpml_get_string_language
filterapply_filters( 'wpml_get_string_language', null, $context, $name ); -
wpml_get_translated_slug
filterapply_filters( 'wpml_get_translated_slug', $slug, $taxonomy, $language, WPML_Slug_Translation_Factory::TAX ); -
wpsc_add_cookie
actiondo_action( 'wpsc_add_cookie', 'wcml_client_currency' ); -
default_product_type
filterapply_filters( 'default_product_type', 'simple' ); -
icl_lang_sel_copy_parameters
filterapply_filters( 'icl_lang_sel_copy_parameters', array_map( 'trim', explode( ',', wpml_get_setting_filter( '', 'icl_lang_sel_copy_parameters' ) ) ) ); -
rest_url_prefix
filterapply_filters( 'rest_url_prefix', 'wp-json' ); -
wc_session_expiration
filterapply_filters( 'wc_session_expiration', 60 * 60 * 48 ); -
wc_session_use_secure_cookie
filterapply_filters( 'wc_session_use_secure_cookie', false ); -
apply_filters( 'wcml_add_to_cart_sold_individually', true, $cart_item_data, $post_id, $cart_item['quantity'] ); -
do_action( 'wcml_after_custom_prices_block', $product_id ); -
do_action( 'wcml_after_load_lock_fields_js' ); -
wcml_after_sync_product
actiondo_action( 'wcml_after_sync_product', $originalProduct->ID, $product->ID ); -
do_action( 'wcml_before_init_currency_payment_gateways' ); -
wcml_before_switch_currency
actiondo_action( 'wcml_before_switch_currency', $currency, $force_switch ); -
wcml_before_sync_product
actiondo_action( 'wcml_before_sync_product', $originalProduct->ID, $product->ID ); -
do_action( 'wcml_bookings_resource_costs_updated', $postId, $key ); -
wcml_cart_contents
filterapply_filters( 'wcml_cart_contents', $new_cart_data, $cart->cart_contents, $key, $new_key ); -
apply_filters( 'wcml_cart_contents_not_changed', $cart->cart_contents[ $key ], $key, $current_language ); -
apply_filters( 'wcml_cfe_exclude_fields_to_register', $exclude_fields ); -
wcml_check_is_single
filterapply_filters( 'wcml_check_is_single', true, $product_id, $meta_key ); -
apply_filters( 'wcml_check_on_duplicated_products_in_cart', $cart_contents, $key, $cart_content ); -
wcml_cookie_expiration
filterapply_filters( 'wcml_cookie_expiration', 48 * HOUR_IN_SECONDS, $key ); -
wcml_cs_directories_to_scan
filterapply_filters( 'wcml_cs_directories_to_scan', $dirs_to_scan ); -
wcml_cs_template_css_classes
filterapply_filters( 'wcml_cs_template_css_classes', $classes ); -
apply_filters( 'wcml_currencies_without_cents', $this->currencies_without_cents ); -
wcml_currency_switcher
actiondo_action( 'wcml_currency_switcher', [ 'switcher_id' => $getId( $args ) ?: $getId( $instance ) ] ); -
apply_filters( 'wcml_current_gateway_language', $current_gateway_language ); -
wcml_custom_prices_fields
filterapply_filters( 'wcml_custom_prices_fields', [ '_regular_price', '_sale_price' ], $product_id ); -
apply_filters( 'wcml_custom_prices_fields_labels', [ '_regular_price' => __( 'Regular Price', 'woocommerce-multilingual' ), '_sale_price' => __( 'Sale Price', 'woocommerce-multilingual' ), ], $product_id ); -
wcml_custom_prices_strings
filterapply_filters( 'wcml_custom_prices_strings', [ 'not_set' => sprintf( __( 'Multi-currency is enabled, but no secondary currencies have been set. %1$sAdd secondary currency%2$s.', 'woocommerce-multilingual' ), '<a href="' . \WCML\Utilities\AdminUrl::getMultiCurrencyTab() . '">', '</a>' ), 'calc_auto' => __( 'Calculate prices in other currencies automatically', 'woocommerce-multilingual' ), 'see_prices' => __( 'Click to see the prices in the... ); -
apply_filters( 'wcml_editor_scoped_heavy_load_threshold', self::SWITCH_HINT_ITERATION_THRESHOLD ); -
apply_filters( 'wcml_editor_scoped_variation_ids', null, $product->ID ); -
wcml_email_language
filterapply_filters( 'wcml_email_language', $current_language, $order_id ); -
wcml_email_text_domain
filterapply_filters( 'wcml_email_text_domain', 'woocommerce', $email ); -
apply_filters( 'wcml_emails_options_to_translate', self::OPTION_NAMES ); -
apply_filters( 'wcml_emails_section_name_prefix', 'wc_email_', $option ); -
apply_filters( 'wcml_emails_section_name_to_translate', $sectionName ); -
apply_filters( 'wcml_emails_text_keys_to_translate', self::EMAIL_TEXT_KEYS ); -
apply_filters( 'wcml_endpoint_keys_to_options', $this->endpointKeysToOptions ); -
apply_filters( 'wcml_endpoints_translation_controls', self::OPTION_NAMES ); -
apply_filters( 'wcml_exception_duplicate_products_in_cart', false, $cart_content ); -
wcml_exchange_rates
filterapply_filters( 'wcml_exchange_rates', $this->exchange_rates ); -
apply_filters( 'wcml_facebook_sync_products_languages', [] ); -
wcml_filter_cart_item_data
filterapply_filters( 'wcml_filter_cart_item_data', $cart_contents ); -
apply_filters( 'wcml_filter_currency_position', $currency_code ); -
apply_filters( 'wcml_force_currency_switcher_twig_template', false ); -
do_action( 'wcml_force_full_product_sync_run', $productId, $product ); -
apply_filters( 'wcml_force_reset_cart_fragments', 0 ); -
apply_filters( 'wcml_geolocation_get_user_country', $userCountry, $allUserCountries ); -
apply_filters( 'wcml_get_admin_language_by_email', $language, $recipient, $order_id ); -
apply_filters( 'wcml_get_order_items_language', $language, $order ); -
wcml_gui_additional_box_data
filterapply_filters( 'wcml_gui_additional_box_data', $element_data, $this->product_id, $translation, $this->get_target_language() ); -
wcml_gui_additional_box_html
actiondo_action( 'wcml_gui_additional_box_html', $this, $this->product_id, $this->data ); -
wcml_hide_cart_alert_dialog
filterapply_filters( 'wcml_hide_cart_alert_dialog', false ); -
apply_filters( 'wcml_is_cache_enabled_for_switching_currency', $script_vars['cache_enabled'] ); -
wcml_is_importing
filterapply_filters( 'wcml_is_importing', false ); -
wcml_is_variable_product
filterapply_filters( 'wcml_is_variable_product', $is_variable_product, $product_id ); -
wcml_js_lock_fields_classes
filterapply_filters( 'wcml_js_lock_fields_classes', [] ); -
wcml_js_lock_fields_ids
filterapply_filters( 'wcml_js_lock_fields_ids', [] ); -
apply_filters( 'wcml_js_lock_fields_input_names', [] ); -
wcml_load_multi_currency
filterapply_filters( 'wcml_load_multi_currency', $load ); -
apply_filters( 'wcml_load_multi_currency_in_ajax', $load ); -
wcml_loaded
actiondo_action( 'wcml_loaded' ); -
wcml_meta_value_before_add
filterapply_filters( 'wcml_meta_value_before_add', $meta_value, $custom_filed_key ); -
apply_filters( 'wcml_multi_currency_ajax_actions', [ 'woocommerce_get_refreshed_fragments', 'woocommerce_update_order_review', 'woocommerce_checkout', 'woocommerce_add_to_cart', 'woocommerce_update_shipping_method', 'woocommerce_json_search_products_and_variations', 'woocommerce_add_coupon_discount', ] ); -
do_action( 'wcml_multi_currency_set_switching_currency_html', $preventSwitching['prevent_switching'] ); -
apply_filters( 'wcml_multicurrency_supported_cache_plugins', [] ); -
apply_filters( 'wcml_new_order_admin_email_language', $language, $recipient, $order_id ); -
wcml_order_id_for_language
filterapply_filters( 'wcml_order_id_for_language', $orderId ); -
wcml_order_item_quantity
filterapply_filters( 'wcml_order_item_quantity', $qty, $order, $item ); -
apply_filters( 'wcml_order_item_shipping_method_translators', $orderItemShippingTranslators ); -
wcml_price_custom_fields
filterapply_filters( 'wcml_price_custom_fields', $filtered_keys, $object_id ); -
apply_filters( 'wcml_price_custom_fields_filtered', $default_keys, $object_id ); -
do_action( 'wcml_product_addons_global_updated', $metaId, $id, $metaKey, $addons ); -
wcml_product_content_fields
filterapply_filters( 'wcml_product_content_fields', $contents, $product_id ); -
wcml_product_content_label
filterapply_filters( 'wcml_product_content_label', $field, $this->product_id ); -
wcml_product_custom_prices
filterapply_filters( 'wcml_product_custom_prices', $custom_prices, $product_id, $currency ); -
apply_filters( 'wcml_product_has_custom_prices', (bool) get_post_meta( $product_id, '_wcml_custom_prices_status', true ), $product_id ); -
apply_filters( 'wcml_product_synchronization_on_save_is_valid_context', $isValidContext ); -
apply_filters( 'wcml_register_endpoints_query_vars', $queryVars, $originalQueryVars, $this ); -
apply_filters( 'wcml_register_endpoints_store_urls', WC()->query->query_vars ); -
wcml_removed_cart_items
actiondo_action( 'wcml_removed_cart_items' ); -
wcml_rounded_price
filterapply_filters( 'wcml_rounded_price', $price, $currency ); -
apply_filters( 'wcml_sanitize_name_for_translated_attribute_label', true, $name, $label ); -
wcml_saved_mc_options
actiondo_action( 'wcml_saved_mc_options', $_POST ); -
wcml_send_email_order_id
filterapply_filters( 'wcml_send_email_order_id', $order_id ); -
wcml_set_client_currency
actiondo_action( 'wcml_set_client_currency', $currency ); -
wcml_settings_form_saved
actiondo_action( 'wcml_settings_form_saved' ); -
wcml_setup_completed
actiondo_action( 'wcml_setup_completed' ); -
wcml_shipping_cost_in_mc
actiondo_action( 'wcml_shipping_cost_in_mc', $wcShippingMethod ); -
apply_filters( 'wcml_shipping_free_min_amount', $settings['min_amount'], $settings ); -
apply_filters( 'wcml_should_save_adjusted_order_item_in_language', $forceSaveInDefaultLanguage, $item, $targetLanguage ); -
apply_filters( 'wcml_should_translate_order_items', $shouldTranslateOrderItems, $items, $order ); -
apply_filters( 'wcml_should_translate_shipping_method_title', ! is_admin() || $is_edit_order, $title, $shipping_id, $language ); -
apply_filters( 'wcml_supported_currency_payment_gateways', $this->supported_gateways ); -
wcml_switch_currency
actiondo_action( 'wcml_switch_currency', $currency, $from_currency ); -
apply_filters( 'wcml_translate_shipping_method_in_package', true, $key, $method ); -
apply_filters( 'wcml_translated_attribute_label_product_id', $product_id, $label, $name, $product_obj ); -
apply_filters( 'wcml_translated_package_rates', $available_methods ); -
apply_filters( 'wcml_update_cart_contents_lang_switch', $cart->cart_contents, $key, $new_key, $current_language ); -
wcml_update_extra_fields
actiondo_action( 'wcml_update_extra_fields', $this->product_id, $tr_product_id, $translations, $this->get_target_language() ); -
wcml_user_store_strategy
filterapply_filters( 'wcml_user_store_strategy', 'wc-session', $key ); -
wcml_user_switch_language
actiondo_action( 'wcml_user_switch_language', $lang_from, $lang_to ); -
do_action( 'wcml_variation_source_not_readable', $productId, $variationIds ); -
apply_filters( 'wcml_vendor_addon_configuration', null ); -
wcml_wc_installed_pages
filterapply_filters( 'wcml_wc_installed_pages', [ 'woocommerce_shop_page_id', 'woocommerce_cart_page_id', 'woocommerce_checkout_page_id', 'woocommerce_myaccount_page_id', ] ); -
apply_filters( 'wcml_xliff_allowed_variations_types', [ 'variable' ] ); -
widget_title
filterapply_filters( 'widget_title', $instance['settings']['widget_title'] ); -
apply_filters( 'woocommerce_booking_is_paid_statuses', [ 'confirmed', 'paid', 'complete' ] ); -
apply_filters( 'woocommerce_paypal_supported_currencies', self::SUPPORTED_CURRENCIES ); -
apply_filters( 'woocommerce_price_filter_widget_step', self::WC_DEFAULT_STEP ); -
apply_filters( 'woocommerce_rest_is_request_to_rest_api', self::checkEndpoint( 'wc/v' . self::getApiRequestVersion() . '/' ) || self::isWooCommerceAbilityRequest() ); -
apply_filters( 'woocommerce_variation_is_visible', true, $variation_id, $product->get_id() ); -
wpml_add_language_form_field
actiondo_action( 'wpml_add_language_form_field' ); -
wpml_add_string_translation
actiondo_action( 'wpml_add_string_translation', $string->id, $target_language, $translations[ md5( $string->name ) ], $this->sitepress->get_wp_api()->constant( 'ICL_TM_COMPLETE' ) ); -
do_action( 'wpml_currency_switcher_uses_twig_templates', $templateSetup['slug'] ?? '' ); -
apply_filters( 'wpml_editor_custom_field_style', $cf_settings->get_editor_style(), 'field-' . $custom_field ); -
apply_filters( 'wpml_get_cross_domain_language_data', [] ); -
wpml_get_endpoint_url
filterapply_filters( 'wpml_get_endpoint_url', $current_endpoint['endpoint'], $current_endpoint['value'], $url ); -
apply_filters( 'wpml_get_slug_translation_languages', [], 'product' ); -
apply_filters( 'wpml_is_display_as_translated_post_type', false, 'product' ); -
wpml_language_is_active
filterapply_filters( 'wpml_language_is_active', false, $data['lang'] ); -
wpml_notice_allowed_html
filterapply_filters( 'wpml_notice_allowed_html', $allowed ); -
wpml_notice_text
filterapply_filters( 'wpml_notice_text', $this->text, $notice ); -
wpml_permalink
filterapply_filters( 'wpml_permalink', $product_data['url'], $product_lang['language_code'] ); -
wpml_role_for_level_default
filterapply_filters( 'wpml_role_for_level_default', $default, $level ); -
wpml_setting
filterapply_filters( 'wpml_setting', '', 'translated_document_page_url' ); -
do_action( 'wpml_st_force_translate_admin_options', [ 'woocommerce_checkout_privacy_policy_text', 'woocommerce_email_footer_text', 'woocommerce_email_from_address', 'woocommerce_email_from_name', 'woocommerce_price_decimal_sep', 'woocommerce_price_thousand_sep', 'woocommerce_registration_privacy_policy_text', ] ); -
apply_filters( 'wpml_st_get_post_string_packages', false, $product_id ); -
apply_filters( 'wpml_st_registered_string_names', null, $domain, $namePrefix ); -
wpml_st_string_updated
actiondo_action( 'wpml_st_string_updated' ); -
wpml_string_title_from_id
filterapply_filters( 'wpml_string_title_from_id', false, $string->id ); -
wpml_sync_all_custom_fields
actiondo_action( 'wpml_sync_all_custom_fields', getId( $product ) ); -
wpml_tea_recheck_scope
actiondo_action( 'wpml_tea_recheck_scope', 'wcml_setup_completed' ); -
wpml_tm_add_translation_role
actiondo_action( 'wpml_tm_add_translation_role', $user, self::TRANSLATE_CAPABILITY ); -
do_action( 'wpml_tm_ate_synchronize_translators' ); -
wpml_tm_editor_string_style
filterapply_filters( 'wpml_tm_editor_string_style', $field_style, 'field-' . $custom_field . '-0', get_post( $this->product_id ) ); -
wpml_translate_link_targets
filterapply_filters( 'wpml_translate_link_targets', $term_description ); -
wpml_translation_status
filterapply_filters( 'wpml_translation_status', null, $product->trid, $language ); -
do_action( 'wpml-notices-scripts-enqueued' );
Generated from WPML Multilingual & Multicurrency for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: