WordPress filter hook
wpml_sub_setting
Fired by 14 WordPress plugins, running on 518K+ sites between them.
How to use wpml_sub_setting
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wpml_sub_setting', function( $value, $arg2, $taxonomy ) {
// Change $value here.
return $value;
}, 10, 3 );Argument names come from Term Management Tools's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
14 plugins that fire wpml_sub_setting
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Meta Box500,000+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )src/Integrations/WPML.php:106 -
Term Management Tools10,000+ installs
apply_filters( 'wpml_sub_setting', false, 'taxonomies_sync_option', $taxonomy )classes/class-WPML.php:279 -
WPML Multilingual for BuddyPress and BuddyBoss6,000+ installs
apply_filters( 'wpml_sub_setting', [], 'st', 'translated-users', null )includes/class.xprofile.php:404 -
Disclaimer Popup1,000+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )assets/meta-box/inc/wpml.php:100 -
WP Restaurant Price List400+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )assets/meta-box/inc/wpml.php:112 -
Kata Plus300+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )includes/meta-box/meta-box-plugin/inc/wpml.php:105 -
Crucial Real Estate100+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )includes/libraries/meta-box/src/Integrations/WPML.php:95 -
Custom Permalinks for Custom Post Types100+ installs
apply_filters( 'wpml_sub_setting', false, 'custom_posts_sync_option', $post->post_type )custom-permalinks-for-custom-post-types.php:39 -
SermonPress20+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )dependencies/meta-box/inc/wpml.php:111 -
Pando Extra10+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )inc/meta-box/inc/wpml.php:111 -
Custom Credit Card Icons for Easy Digital Downloads10+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )assets/meta-box/inc/wpml.php:112 -
Coupon Fun (WordPress Coupon Plugin by ThemeXL.com)10+ installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )inc/meta-box-master/inc/wpml.php:111 -
Real Estate PropertiesFewer than 10 installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )plugins/meta-box/inc/wpml.php:111 -
Real Estate AgenciesFewer than 10 installs
apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' )plugins/meta-box/inc/wpml.php:111
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.