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:

functions.php
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.

  1. Meta Box icon Meta Box500,000+ installs apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' ) src/Integrations/WPML.php:106
  2. Term Management Tools icon Term Management Tools10,000+ installs apply_filters( 'wpml_sub_setting', false, 'taxonomies_sync_option', $taxonomy ) classes/class-WPML.php:279
  3. WPML Multilingual for BuddyPress and BuddyBoss icon WPML Multilingual for BuddyPress and BuddyBoss6,000+ installs apply_filters( 'wpml_sub_setting', [], 'st', 'translated-users', null ) includes/class.xprofile.php:404
  4. Disclaimer Popup icon Disclaimer Popup1,000+ installs apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' ) assets/meta-box/inc/wpml.php:100
  5. WP Restaurant Price List icon WP Restaurant Price List400+ installs apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' ) assets/meta-box/inc/wpml.php:112
  6. Kata Plus icon Kata Plus300+ installs apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' ) includes/meta-box/meta-box-plugin/inc/wpml.php:105
  7. Crucial Real Estate icon Crucial Real Estate100+ installs apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' ) includes/libraries/meta-box/src/Integrations/WPML.php:95
  8. Custom Permalinks for Custom Post Types icon 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
  9. SermonPress icon SermonPress20+ installs apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' ) dependencies/meta-box/inc/wpml.php:111
  10. Pando Extra icon Pando Extra10+ installs apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' ) inc/meta-box/inc/wpml.php:111
  11. Custom Credit Card Icons for Easy Digital Downloads icon 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
  12. Coupon Fun (WordPress Coupon Plugin by ThemeXL.com) icon 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
  13. Real Estate Properties icon Real Estate PropertiesFewer than 10 installs apply_filters( 'wpml_sub_setting', false, 'translation-management', 'custom_fields_translation' ) plugins/meta-box/inc/wpml.php:111
  14. Real Estate Agencies icon 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.