Control Translations

wpscont/helpers/control_translations

Description:
This is one of the most powerful hooks in our plugin. It offers you the possibility to translate strings based on the given settings, as well as on the context tags. It will be super useful if you want to translate just specific strings, none, all, or just your own created ones.

Parameter Type Description
$enable bool An array of all available default functions of the plugin.
$string string The currently translated text
$cname string The context of the string.
        /**
         * Filter to control the translation and optimize
         * them to a specific output
         */
        $trigger = apply_filters('wpscont/helpers/control_translations', $enable, $string, $cname);

Source:
wp-content/plugins/wp-shortcode-control/core/includes/classes/helpers.php

Was this article helpful?

Related Articles