Control plugin translations


This filter runs every time a string wants to be translated. If set to false, the translation is deactivated.

Parameter Type Description
true bool True if the strings should be translated, false if not.
$string string The text that will be translated.
$cname string An identifier from where the string was called from.
 * Filter to control the translation and optimize
 * them to a specific output
$trigger = apply_filters( 'wpmt/helpers/control_translations', true, $string, $cname );
Updated on September 10, 2019

Was this article helpful?

Related Articles