WP HOOKS
filtrod 5.0.2

load_script_translation_file

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

Opis — z kodu źródłowego

Filters the file path for loading script translations for the given script handle and text domain.

Parametry

ParametrTypOpis
$filestring | falsePath to the translation file to load. False if there isn't one.
$handlestringName of the script to register a translation domain to.
$domainstringThe text domain.

Wywołanie

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

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

Popularne w tej kategorii