WP HOOKS
filtrod 6.5.0

load_translation_file

Args 3Plik wp-includes/l10n.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the file path for loading translations for the given text domain.

Similar to the {@see 'load_textdomain_mofile'} filter with the difference that the file path could be for an MO or PHP file.

Parametry

ParametrTypOpis
$filestringPath to the translation file to load.
$domainstringThe text domain.
$localestringThe locale.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_translation_file', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii