WordPress filter hook
tyche_plugin_deactivation_language
Fired by 6 WordPress plugins, running on 73K+ sites between them.
How to use tyche_plugin_deactivation_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( 'tyche_plugin_deactivation_language', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from Payment Gateway Based Fees and Discounts for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
6 plugins that fire tyche_plugin_deactivation_language
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Payment Gateway Based Fees and Discounts for WooCommerce30,000+ installs
apply_filters( 'tyche_plugin_deactivation_language', 'en' )includes/tyche/components/plugin-deactivation/class-plugin-deactivation.php:167 -
Custom Order Numbers for WooCommerce20,000+ installs
apply_filters( 'tyche_plugin_deactivation_language', 'en' )includes/tyche/components/plugin-deactivation/class-tyche-plugin-deactivation.php:169 -
Custom Order Status for WooCommerce10,000+ installs
apply_filters( 'tyche_plugin_deactivation_language', 'en' )includes/tyche/components/plugin-deactivation/class-tyche-plugin-deactivation.php:167 -
Call for Price for WooCommerce7,000+ installs
apply_filters( 'tyche_plugin_deactivation_language', 'en' )includes/tyche/components/plugin-deactivation/class-plugin-deactivation.php:167 -
Product Input Fields for WooCommerce4,000+ installs
apply_filters( 'tyche_plugin_deactivation_language', 'en' )includes/tyche/components/plugin-deactivation/class-tyche-plugin-deactivation.php:169 -
Currency per Product for WooCommerce2,000+ installs
apply_filters( 'tyche_plugin_deactivation_language', 'en' )includes/tyche/components/plugin-deactivation/class-tyche-plugin-deactivation.php:167
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.