wpcf7_load_textdomain()CF7 1.0

Loads a translation file into the plugin's text domain.

Хуков нет.

Возвращает

true|false. True on success, false on failure.

Использование

wpcf7_load_textdomain( $locale );
$locale(строка)
Locale code.
По умолчанию: ''

Код wpcf7_load_textdomain() CF7 5.7.3

function wpcf7_load_textdomain( $locale = '' ) {
	$mofile = path_join(
		WP_LANG_DIR . '/plugins/',
		sprintf( '%s-%s.mo', WPCF7_TEXT_DOMAIN, $locale )
	);

	return load_textdomain( WPCF7_TEXT_DOMAIN, $mofile, $locale );
}