llms_l10n_get_safe_directory()
Contents
Source Source
File: includes/functions/llms-functions-l10n.php
function llms_l10n_get_safe_directory() {
/**
* Filter the LifterLMS language file "safe" directory.
*
* This safe directory exists to provide a place where custom translations can be placed
* which will not be automatically overridden by l10n files automatically pulled into
* the default language directory from the WP GlotPress server during plugin updates.
*
* By default the safe directory is `wp-content/languages/lifterlms`.
*
* @since 4.9.0
*
* @param string $path Full server path to the safe directory.
*/
return apply_filters( 'llms_l10n_safe_directory', WP_LANG_DIR . '/lifterlms' );
}
Expand full source code Collapse full source code View on GitHub