WordPress filter hook
wpml_setting
Fired by 62 WordPress plugins, running on 14.1M+ sites between them.
“1 if the option is *Different languages in directories* 2 if the option is *A different domain per language* 3 if the option is *Language name added as a parameter*.”
How to use wpml_setting
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wpml_setting', function( $value, $arg2 ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from Fabrement Lite's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
62 plugins that fire wpml_setting
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
LiteSpeed Cache7+ million installs
apply_filters( 'wpml_setting', false, 'language_domains' )thirdparty/wpml.cls.php:43 -
All in One SEO2+ million installs
apply_filters( 'wpml_setting', [], 'hidden_languages' )app/Common/Sitemap/Helpers.php:572 -
EWWW Image Optimizer1+ million installs
apply_filters( 'wpml_setting', array(), 'language_domains' )classes/class-base.php:2140 -
WP Fastest Cache1+ million installs
apply_filters( 'wpml_setting', false, 'language_negotiation_type' )inc/admin.php:786 -
Autoptimize800,000+ installs
apply_filters( 'wpml_setting', array(), 'language_domains' )classes/autoptimizeBase.php:124 -
PixelYourSite400,000+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/functions-common.php:3537 -
SEOPress300,000+ installs
apply_filters( 'wpml_setting', false, 'language_negotiation_type' )inc/functions/sitemap/template-xml-sitemaps-author.php:14 -
Breeze Cache300,000+ installs
apply_filters( 'wpml_setting', array(), 'language_domains' )inc/minification/breeze-minification-base.php:185 -
SureRank SEO300,000+ installs
apply_filters( 'wpml_setting', null, 'language_negotiation_type' )inc/third-party-integrations/multilingual/canonical-adapter.php:88 -
FiboSearch100,000+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/Multilingual.php:248 -
Custom Permalinks100,000+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )admin/class-custom-permalinks-taxonomies-table.php:308 -
Relevanssi100,000+ installs
apply_filters( 'wpml_setting', false, 'custom_posts_sync_option' )lib/compatibility/wpml.php:34 -
WPML Multilingual & Multicurrency for WooCommerce100,000+ installs
apply_filters( 'wpml_setting', '', 'translated_document_page_url' )inc/translation-editor/class-wcml-editor-ui-product-job.php:140 -
Pods100,000+ installs
apply_filters( 'wpml_setting', true, 'auto_adjust_ids' )src/Pods/Integrations/WPML.php:192 -
Product Import Export for WooCommerce80,000+ installs
apply_filters( 'wpml_setting', false, 'setup_complete' )admin/modules/product/export/class-wt-prodimpexpcsv-basic-exporter.php:511 -
10Web Booster60,000+ installs
apply_filters( 'wpml_setting', [], 'language_domains' )includes/OptimizerBase.php:106 -
Filter Everything50,000+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )src/wpc-helpers.php:369 -
Website LLMs.txt50,000+ installs
apply_filters( 'wpml_setting', null, 'hidden_languages' )includes/class-llms-generator.php:980 -
Clearfy Cache40,000+ installs
apply_filters( 'wpml_setting', false, 'language_negotiation_type' )components/cache/includes/helpers.php:140 -
Premmerce Permalink Manager for WooCommerce40,000+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )src/Frontend/Frontend.php:38 -
Easy MCP AI40,000+ installs
apply_filters( 'wpml_setting', array(), 'language_domains' )includes/cache/class-url-guard.php:140 -
LWS Optimize20,000+ installs
apply_filters( 'wpml_setting', false, 'language_negotiation_type' )Classes/LwsOptimize.php:1446 -
PowerPress Podcasting plugin by Blubrry20,000+ installs
apply_filters( 'wpml_setting', false, 'setup_complete' )powerpress-playlist.php:143 -
Advanced Coupons for WooCommerce20,000+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )Models/Third_Party_Integrations/WPML_Support.php:665 -
Plausible Analytics10,000+ installs
apply_filters( 'wpml_setting', [], 'hidden_languages' )src/Helpers.php:51 -
Molongui Authorship10,000+ installs
apply_filters( 'wpml_setting', false, 'active_languages' )includes/compat/plugins/wpml.php:42 -
WP Compress9,000+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )traits/url_key.php:1367 -
WPML Multilingual for BuddyPress and BuddyBoss6,000+ installs
apply_filters( 'wpml_setting', null, 'language_negotiation_type' )includes/functions.php:26 -
Custom Permalink Editor4,000+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/class-custom-permalink-editor-frontend.php:710 -
FAZ Cookie Manager3,000+ installs
apply_filters( 'wpml_setting', null, 'language_negotiation_type' )includes/class-i18n-helpers.php:365 -
WP Crowdfunding2,000+ installs
apply_filters( 'wpml_setting', false, 'setup_complete' )includes/Functions.php:319 -
Events Manager and WPML Compatibility1,000+ installs
apply_filters( 'wpml_setting', false, 'setup_complete' )events-manager-wpml.php:49 -
Visibility700+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/class-sitemap.php:249 -
Directorist300+ installs
apply_filters( 'wpml_setting', 1, 'language_negotiation_type' )app/Controller/Hook/Filter_Permalinks.php:728 -
Clerk300+ installs
apply_filters( 'wpml_setting', false, 'setup_complete' )includes/clerk-multi-lang-helpers.php:24 -
CSS Minify200+ installs
apply_filters( 'wpml_setting', array(), 'language_domains' )classes/bpminifycssBase.php:61 -
Mailster WPML100+ installs
apply_filters( 'wpml_setting', false, 'language_negotiation_type' )classes/wpml.class.php:300 -
Verowa Connect100+ installs
apply_filters( 'wpml_setting', false, 'setup_complete' )functions/wpml.php:415 -
WPML Multilingual for Easy Digital Downloads70+ installs
apply_filters( 'wpml_setting', false, 'setup_complete' )class-edd-multilingual.php:30 -
Easy Image Optimizer60+ installs
apply_filters( 'wpml_setting', array(), 'language_domains' )classes/class-base.php:2140 -
AISA60+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/seo/class-aisa-sitemap-multilang.php:69 -
Mira LLM Optimizer40+ installs
apply_filters( 'wpml_setting', null, 'hidden_languages' )includes/class-mira-llm-generator.php:287 -
RankFlect SEO30+ installs
apply_filters( 'wpml_setting', array(), 'seo' )includes/Integrations/Multilingual.php:302 -
Counterhand MCP for WooCommerce30+ installs
apply_filters( 'wpml_setting', null, 'translation-management' )src/Features/WooCommerceTools/Domain/TranslatableMetaRules.php:31 -
UltraCache20+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/integrations/wpml/functions.php:389 -
Blaminhor Essentials20+ installs
apply_filters( 'wpml_setting', array(), 'language_domains' )modules/cache/includes/class-cache-webvitals-collector.php:309 -
One-V LLM Serve10+ installs
apply_filters( 'wpml_setting', [], 'language_domains' )includes/class-ovls-generator.php:619 -
Ibexrentacar10+ installs
apply_filters( 'wpml_setting', array(), 'hidden_languages' )lib/irc/irc.php:11 -
DigitalM Inside SEO10+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/class-seoh-wpml.php:577 -
AIO Performance Profiler, Monitor, Optimize, Compress & Debug10+ installs
apply_filters( 'wpml_setting', array(), 'language_domains' )combine/enhancerBase.php:79 -
AJAX Search, Filtering and Sorting for WordPress & WooCommerce10+ installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )src/sfswp-helpers.php:296 -
PureMetrixFewer than 10 installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/class-multilingual.php:72 -
SearchCue: AI Site Search & AnswersFewer than 10 installs
apply_filters( 'wpml_setting', 0, "language_negotiation_type" )includes/setup.php:369 -
LinguaPilotFewer than 10 installs
apply_filters( 'wpml_setting', false, 'setup_complete' )src/Gateway/WpmlGateway.php:75 -
Contentrain BridgeFewer than 10 installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/class-contentrain-bridge-languages.php:115 -
Seofyme SEOFewer than 10 installs
apply_filters( 'wpml_setting', null, 'seo' )includes/Compatibility/WPML.php:84 -
Omea AnalyticsFewer than 10 installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/class-omea-i18n.php:519 -
Beplus Performance BoosterFewer than 10 installs
apply_filters( 'wpml_setting', 0, 'language_negotiation_type' )includes/class-bepluspb-page-cache.php:651 -
StalelingoFewer than 10 installs
apply_filters( 'wpml_setting', null, 'translation-management' )includes/Integrations/Acf.php:218 -
Fabrement LiteFewer than 10 installs
apply_filters( 'wpml_setting', array(), $is_post ? 'custom_posts_sync_option' : 'taxonomies_sync_option' )src/Modules/Translation/Bridge/WpmlBridge.php:978 -
Hubu PanelFewer than 10 installs
apply_filters( 'wpml_setting', false, 'setup_complete' )includes/core/i18n/providers/class-wpml-provider.php:73 -
YaftinoFewer than 10 installs
apply_filters( 'wpml_setting', array(), 'custom_posts_sync_option' )includes/class-wpml-adapter.php:64 -
SEO Mason BridgeFewer than 10 installs
apply_filters( 'wpml_setting', null, 'language_negotiation_type' )includes/class-seo-mason-bridge-rest.php:356
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.