WP HOOKS
filtrod 5.0.2

load_script_translations

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

Opis — z kodu źródłowego

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

Parametry

ParametrTypOpis
$translationsstringJSON-encoded translation data.
$filestringPath to the translation file that was loaded.
$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_translations', 'twoja_funkcja', 10, 4 );

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

Popularne w tej kategorii