WP HOOKS
filtrod 2.8.0

gettext_with_context

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

Opis — z kodu źródłowego

Filters text with its translation based on context information.

Parametry

ParametrTypOpis
$translationstringTranslated text.
$textstringText to translate.
$contextstringContext information for the translators.
$domainstringText domain. Unique identifier for retrieving translated strings.

Wywołanie

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

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

Popularne w tej kategorii