WordPress filter hook
wpml_current_language
Fired by 785 WordPress plugins, running on 24.8M+ sites between them.
“Store original language”
How to use wpml_current_language
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wpml_current_language', function( $language ) {
// Change $language here.
return $language;
}, 10, 1 );Argument names come from Additional Variation Images Gallery for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
785 plugins that fire wpml_current_language
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes. Showing the 150 most used.
-
Really Simple Security3+ million installs
apply_filters( 'wpml_current_language', null )settings/settings.php:31 -
Ultimate Addons for Elementor2+ million installs
apply_filters( 'wpml_current_language', '' )inc/lib/target-rule/class-astra-target-rules-fields.php:1278 -
CookieYes1+ million installs
apply_filters( 'wpml_current_language', $null )legacy/includes/class-cookie-law-info-languages.php:97 -
Essential Addons for Elementor1+ million installs
apply_filters( 'wpml_current_language', null )includes/Extensions/Wrapper_Link.php:41 -
Disable Comments1+ million installs
apply_filters( 'wpml_current_language', null )disable-comments.php:1017 -
Complianz GDPR/CCPA Cookie Consent Banner1+ million installs
apply_filters( 'wpml_current_language', null )settings/settings.php:31 -
WP Fastest Cache1+ million installs
apply_filters( 'wpml_current_language', NULL )wpFastestCache.php:1292 -
Spectra Legacy1+ million installs
apply_filters( 'wpml_current_language', null )blocks-config/google-map/class-uagb-google-map.php:171 -
Google for WooCommerce800,000+ installs
apply_filters( 'wpml_current_language', null )src/Integration/WPML.php:71 -
Joinchat700,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-joinchat-i18n.php:413 -
GTM4WP700,000+ installs
apply_filters( 'wpml_current_language', null )src/Modules/PageVariables/PageVariablesModule.php:426 -
Royal Addons for Elementor600,000+ installs
apply_filters( 'wpml_current_language', null )admin/includes/wpr-render-templates.php:152 -
Post Types Order600,000+ installs
apply_filters( 'wpml_current_language', null )include/class.cpto.php:582 -
Premium Addons for Elementor600,000+ installs
apply_filters( 'wpml_current_language', '-' )widgets/premium-blog.php:3470 -
Extendify500,000+ installs
apply_filters( 'wpml_current_language', null )app/AgentX/Translations.php:48 -
SureForms500,000+ installs
apply_filters( 'wpml_current_language', null )inc/compatibility/multilingual/providers/wpml-provider.php:81 -
Meta Box500,000+ installs
apply_filters( 'wpml_current_language', null )src/Integrations/WPML.php:219 -
Meta for WooCommerce400,000+ installs
apply_filters( 'wpml_current_language', null )includes/Integrations/WPML.php:159 -
Page Builder by SiteOrigin400,000+ installs
apply_filters( 'wpml_current_language', null )inc/sidebars-emulator.php:78 -
Jeg Kit for Elementor300,000+ installs
apply_filters( 'wpml_current_language', null )helper.php:1401 -
SEOPress300,000+ installs
apply_filters( 'wpml_current_language', null )seopress-functions.php:359 -
Ad Inserter300,000+ installs
apply_filters( 'wpml_current_language', null )class.php:9032 -
Unlimited Elements for Elementor300,000+ installs
apply_filters( 'wpml_current_language', null )provider/wpml_integrate.class.php:164 -
SureRank SEO300,000+ installs
apply_filters( 'wpml_current_language', null )inc/third-party-integrations/multilingual/providers/wpml.php:258 -
Variation Swatches for WooCommerce300,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-woo-variation-swatches-manage-cache.php:116 -
Photo Gallery, Sliders, Proofing and Themes300,000+ installs
apply_filters( 'wpml_current_language', null )src/Display/I18N.php:306 -
Newsletter200,000+ installs
apply_filters( 'wpml_current_language', '' )includes/module-admin.php:610 -
Popup Builder200,000+ installs
apply_filters( 'wpml_current_language', null )com/classes/PopupChecker.php:704 -
FileBird200,000+ installs
apply_filters( 'wpml_current_language', null )includes/Support/WPML.php:71 -
WPML Multilingual & Multicurrency for WooCommerce100,000+ installs
apply_filters( 'wpml_current_language', null )classes/Abilities/Hooks.php:83 -
Social Media Share Buttons & Social Sharing Icons100,000+ installs
apply_filters( 'wpml_current_language', NULL )libs/controllers/sfsiocns_OnPosts.php:310 -
Custom Permalinks100,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-custom-permalinks-frontend.php:310 -
Mollie Payments for WooCommerce100,000+ installs
apply_filters( 'wpml_current_language', get_locale() )src/Shared/Data.php:115 -
Asset CleanUp: Page Speed Booster100,000+ installs
apply_filters( 'wpml_current_language', null )classes/Admin/AssetsManagerAdmin.php:404 -
Relevanssi100,000+ installs
apply_filters( 'wpml_current_language', null )lib/utils.php:448 -
Gutenberg Essential Blocks100,000+ installs
apply_filters( 'wpml_current_language', NULL )views/post-partials/category-filter.php:15 -
WP All Export100,000+ installs
apply_filters( 'wpml_current_language', null )libraries/XmlExportCpt.php:504 -
FiboSearch100,000+ installs
apply_filters( 'wpml_current_language', null )includes/Multilingual.php:119 -
WP Popular Posts100,000+ installs
apply_filters( 'wpml_current_language', null )src/Translate.php:67 -
Custom Sidebars100,000+ installs
apply_filters( 'wpml_current_language', null )inc/integrations/class-custom-sidebars-integration-wpml.php:87 -
ShopEngine100,000+ installs
apply_filters( 'wpml_current_language', 'en' )core/multi-language/language.php:57 -
Pods100,000+ installs
apply_filters( 'wpml_current_language', null )src/Pods/Integrations/WPML.php:90 -
Folders90,000+ installs
apply_filters( 'wpml_current_language', null )includes/Folders/Translations/Wpml.php:112 -
Customer Reviews for WooCommerce80,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/emails/class-cr-copy-link.php:46 -
HUSKY80,000+ installs
apply_filters( 'wpml_current_language', null )classes/helper.php:178 -
Download Monitor80,000+ installs
apply_filters( 'wpml_current_language', null )src/Download/Download.php:514 -
Kubio AI Page Builder80,000+ installs
apply_filters( 'wpml_current_language', null )lib/integrations/multilanguage/wpml.php:25 -
ShopLentor80,000+ installs
apply_filters( 'wpml_current_language', 'en' )classes/class.multi_language.php:38 -
Jupiter X Core70,000+ installs
apply_filters( 'wpml_current_language', null )includes/condition/classes/wpml.php:35 -
Slim SEO70,000+ installs
apply_filters( 'wpml_current_language', null )src/Integrations/WPML.php:48 -
YITH WooCommerce Ajax Product Filter70,000+ installs
apply_filters( 'wpml_current_language', null )includes/cache-providers/class-yith-wcan-cache-provider-table.php:189 -
WP Job Manager70,000+ installs
apply_filters( 'wpml_current_language', null )includes/3rd-party/wpml.php:19 -
Depicter70,000+ installs
apply_filters( 'wpml_current_language', NULL )app/src/Media/Image/Resizer.php:34 -
Import and export users and customers70,000+ installs
apply_filters( 'wpml_current_language', NULL )addons/wpml.php:31 -
Buttonizer70,000+ installs
apply_filters( 'wpml_current_language', NULL )app/Core/buttonizer/wp-php-core/src/InitBootstrap.php:44 -
WP Mobile Menu70,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/class-wp-mobile-menu-core.php:814 -
Media Library Assistant70,000+ installs
apply_filters( 'wpml_current_language', '' )includes/class-mla-wpml-support.php:171 -
Conditional Menus60,000+ installs
apply_filters( 'wpml_current_language', null )init.php:625 -
Advanced Woo Search60,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/class-aws-cache.php:71 -
Simple Sitemap60,000+ installs
apply_filters( 'wpml_current_language', null )shared/providers/class-language-provider.php:27 -
Online Scheduling and Appointment Booking System60,000+ installs
apply_filters( 'wpml_current_language', null )lib/entities/CustomerAppointment.php:1058 -
WP ULike60,000+ installs
apply_filters( 'wpml_current_language', null )includes/functions/general.php:879 -
User Registration & Membership50,000+ installs
apply_filters( 'wpml_current_language', 'en' )includes/functions-ur-page.php:97 -
Orphans50,000+ installs
apply_filters( 'wpml_current_language', get_locale() )includes/iworks/class-iworks-orphan.php:250 -
Advanced AJAX Product Filters50,000+ installs
apply_filters( 'wpml_current_language', NULL )addons/additional_tables/add_table.php:179 -
Contextual Related Posts50,000+ installs
apply_filters( 'wpml_current_language', null )includes/frontend/class-language-handler.php:95 -
Dynamic Visibility for Elementor50,000+ installs
apply_filters( 'wpml_current_language', null )class/trait/shared/object-translation.php:10 -
Export All URLs50,000+ installs
apply_filters( 'wpml_current_language', null )classes/class-multilingual.php:38 -
WP Recipe Maker50,000+ installs
apply_filters( 'wpml_current_language', null )includes/public/class-wprm-compatibility.php:895 -
WP Hide & Security Enhancer50,000+ installs
apply_filters( 'wpml_current_language', NULL )compatibility/wpml.php:56 -
Website LLMs.txt50,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-llms-generator.php:1154 -
Simply Static40,000+ installs
apply_filters( 'wpml_current_language', null )src/crawler/class-ss-taxonomy-crawler.php:40 -
Super Progressive Web Apps40,000+ installs
apply_filters( 'wpml_current_language', null )public/sw.php:112 -
Bold Page Builder40,000+ installs
apply_filters( 'wpml_current_language', null )bold-builder-fe.php:640 -
Buttonizer40,000+ installs
apply_filters( 'wpml_current_language', NULL )app/Core/buttonizer/wp-php-core/src/InitBootstrap.php:44 -
WP Store Locator40,000+ installs
apply_filters( 'wpml_current_language', null )includes/core/i18n/class-translations.php:344 -
Buttonizer40,000+ installs
apply_filters( 'wpml_current_language', NULL )app/Core/buttonizer/wp-php-core/src/InitBootstrap.php:44 -
Clearfy Cache40,000+ installs
apply_filters( 'wpml_current_language', null )components/cache/includes/helpers.php:148 -
Easy MCP AI40,000+ installs
apply_filters( 'wpml_current_language', null )includes/multilingual/class-wpml-adapter.php:123 -
WCBoost40,000+ installs
apply_filters( 'wpml_current_language', null )includes/compatibility.php:141 -
Quiz and Survey Master (QSM)40,000+ installs
apply_filters( 'wpml_current_language', null )php/shortcodes.php:53 -
GEO Plugin by Squirrly SEO30,000+ installs
apply_filters( 'wpml_current_language', NULL )models/Compatibility.php:202 -
Custom Order Status Manager for WooCommerce30,000+ installs
apply_filters( 'wpml_current_language', NULL )src/Status.php:322 -
FunnelKit30,000+ installs
apply_filters( 'wpml_current_language', null )compatibilities/class-wffn-wpml-plugin-compatibility.php:813 -
Ditty30,000+ installs
apply_filters( 'wpml_current_language', null )includes/translators/wpml.php:25 -
NotificationX30,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/ThirdParty/WPML.php:269 -
Visual Composer Website Builder30,000+ installs
apply_filters( 'wpml_current_language', null )visualcomposer/Modules/Vendors/Plugins/WpmlController.php:660 -
HireZoot30,000+ installs
apply_filters( 'wpml_current_language', null )wp-job-openings.php:2723 -
BetterDocs30,000+ installs
apply_filters( 'wpml_current_language', null )includes/REST/Translations.php:109 -
Product Addons for Woocommerce30,000+ installs
apply_filters( 'wpml_current_language', null )includes/compatibility/ml.php:35 -
YITH WooCommerce Ajax Search30,000+ installs
apply_filters( 'wpml_current_language', null )includes/functions-yith-wcas.php:80 -
Booster for WooCommerce30,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-wcj-wpml.php:105 -
MailerLite30,000+ installs
apply_filters( 'wpml_current_language', null )includes/services/WooMailerLiteLanguageService.php:66 -
Additional Variation Images Gallery for WooCommerce30,000+ installs
apply_filters( 'wpml_current_language', $language )includes/class-woo-variation-gallery-frontend.php:295 -
WP Travel Engine20,000+ installs
apply_filters( 'wpml_current_language', null )includes/classes/Core/Models/Post/TravelerCategory.php:122 -
BeyondSEO20,000+ installs
apply_filters( 'wpml_current_language', null )inc/Core/AutoSetup/Onboarding/AutoSetupOnboarding.php:1549 -
Wicked Folders20,000+ installs
apply_filters( 'wpml_current_language', false )classes/integrations/wpml/integrator.php:42 -
Ecwid by Lightspeed Ecommerce Shopping Cart20,000+ installs
apply_filters( 'wpml_current_language', null )includes/integrations/class-ecwid-integration-wpml.php:25 -
YITH WooCommerce Product Add-Ons20,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/class-yith-wapo-wpml.php:70 -
Dynamic XML Sitemaps Generator for Google20,000+ installs
apply_filters( 'wpml_current_language', null )includes/Cache.php:165 -
Email Template Designer20,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-multilanguage.php:10 -
Rearrange Products for WooCommerce20,000+ installs
apply_filters( 'wpml_current_language', null )includes/Database.php:537 -
Brave20,000+ installs
apply_filters( 'wpml_current_language', NULL )lib/frontend/Popup.php:241 -
LWS Optimize20,000+ installs
apply_filters( 'wpml_current_language', null )Classes/LwsOptimize.php:1455 -
Directorist: AI-Powered Business Directory, Listings & Classified Ads20,000+ installs
apply_filters( 'wpml_current_language', null )includes/classes/class-ajax-handler.php:635 -
Thim Elementor Kit20,000+ installs
apply_filters( 'wpml_current_language', null )inc/external-plugin/class-thim-ekit-wpml.php:25 -
PowerPress Podcasting plugin by Blubrry20,000+ installs
apply_filters( 'wpml_current_language', false )powerpress-playlist.php:152 -
Back In Stock Notifier for WooCommerce20,000+ installs
apply_filters( 'wpml_current_language', null )includes/functions.php:563 -
Stratum Widgets for Elementor20,000+ installs
apply_filters( 'wpml_current_language', $locale_prefix )includes/widgets/countdown.php:36 -
My Calendar20,000+ installs
apply_filters( 'wpml_current_language', null )includes/urls.php:153 -
Constant Contact Forms20,000+ installs
apply_filters( 'wpml_current_language', null )includes/compatibility.php:142 -
Checkout Field Editor for WooCommerce20,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/class-awcfe-ml.php:33 -
Min and Max Quantity for WooCommerce20,000+ installs
apply_filters( 'wpml_current_language', NULL )berocket/libraries/wpml_compatibility.php:7 -
Quads Ads Manager for Google AdSense20,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/conditions.php:585 -
ThinkRank SEO20,000+ installs
apply_filters( 'wpml_current_language', null )includes/integrations/class-multilingual-manager.php:539 -
Revive Social20,000+ installs
apply_filters( 'wpml_current_language', null )includes/admin/models/class-rop-posts-selector-model.php:1086 -
All-in-One Video Gallery20,000+ installs
apply_filters( 'wpml_current_language', null )public/wpml.php:168 -
Wallet for WooCommerce20,000+ installs
apply_filters( 'wpml_current_language', null )includes/multicurrency/class-woo-wallet-multicurrency-integration.php:419 -
FunnelKit Automations20,000+ installs
apply_filters( 'wpml_current_language', null )compatibilities/plugins/class-bwfan-compatibility-with-wpml.php:168 -
BA Book Everything10,000+ installs
apply_filters( 'wpml_current_language', $current_lang )includes/class-babe-calendar-functions.php:1601 -
E2Pdf10,000+ installs
apply_filters( 'wpml_current_language', null )classes/controller/e2pdf.php:104 -
Echo Knowledge Base10,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-epkb-core-utilities.php:881 -
MotoPress Hotel Booking10,000+ installs
apply_filters( 'wpml_current_language', null )includes/emails/templaters/cancellation-booking-templater.php:38 -
SmartCrawl SEO checker, analyzer & optimizer10,000+ installs
apply_filters( 'wpml_current_language', null )includes/core/entities/class-post.php:646 -
MasterStudy LMS WordPress Plugin10,000+ installs
apply_filters( 'wpml_current_language', null )_core/stm-lms-templates/components/admin-react-app/main.php:25 -
Min Max Control10,000+ installs
apply_filters( 'wpml_current_language', NULL )admin/add_options_admin.php:11 -
WebberZone Top 1010,000+ installs
apply_filters( 'wpml_current_language', null )includes/frontend/class-language-handler.php:102 -
King Addons for Elementor10,000+ installs
apply_filters( 'wpml_current_language', '' )includes/extensions/Header_Footer_Builder/Header_Footer_Builder.php:3580 -
404 Solution: Redirection and Page Suggestions10,000+ installs
apply_filters( 'wpml_current_language', null )includes/core/PluginLogicUrlNormalization.php:383 -
Montonio for WooCommerce10,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-wc-montonio-helper.php:102 -
Business Directory Plugin10,000+ installs
apply_filters( 'wpml_current_language', null )includes/compatibility/class-wpml-compat.php:69 -
GeoDirectory10,000+ installs
apply_filters( 'wpml_current_language', null )includes/general-functions.php:2973 -
Animation Addons for Elementor10,000+ installs
apply_filters( 'wpml_current_language', null )inc/AtomicWidgets/Widgets/LoopGrid/class-aae-a-loop-grid.php:855 -
Molongui Authorship10,000+ installs
apply_filters( 'wpml_current_language', NULL )common/utils/helpers.php:466 -
Eventin10,000+ installs
apply_filters( 'wpml_current_language', null )core/wpml/init.php:71 -
Load More Products for WooCommerce10,000+ installs
apply_filters( 'wpml_current_language', NULL )berocket/libraries/wpml_compatibility.php:7 -
WP Booking System10,000+ installs
apply_filters( 'wpml_current_language', null )includes/base/admin/calendar/functions.php:171 -
Advanced Product Labels for WooCommerce10,000+ installs
apply_filters( 'wpml_current_language', NULL )berocket/libraries/wpml_compatibility.php:7 -
YITH Request a Quote for WooCommerce10,000+ installs
apply_filters( 'wpml_current_language', null )includes/class.yith-request-quote.php:202 -
Advanced Woo Labels10,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/class-awl-helpers.php:309 -
Plausible Analytics10,000+ installs
apply_filters( 'wpml_current_language', null )src/Helpers.php:197 -
WP DSGVO Tools (GDPR)10,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-sp-dsgvo-language-tools.php:53 -
LA-Studio Element Kit for Elementor10,000+ installs
apply_filters( 'wpml_current_language', null )includes/addons/language-switcher.php:537 -
HivePress10,000+ installs
apply_filters( 'wpml_current_language', $language )includes/components/class-translator.php:50 -
Product Video Gallery for Woocommerce10,000+ installs
apply_filters( 'wpml_current_language', null )public/class-rendering.php:211 -
WCFM Membership10,000+ installs
apply_filters( 'wpml_current_language', null )core/class-wcfmvm-frontend.php:1448 -
Bit Form10,000+ installs
apply_filters( 'wpml_current_language', null )backend/app/Services/Translation/Provider/WpmlProvider.php:153 -
B2BKing10,000+ installs
apply_filters( 'wpml_current_language', null )includes/class-b2bking-global-helper.php:2557 -
Smart Manager10,000+ installs
apply_filters( 'wpml_current_language', NULL )classes/class-smart-manager-product.php:639 -
Announcer10,000+ installs
apply_filters( 'wpml_current_language', NULL )includes/location-rules/index.php:752
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.