WP HOOKS
filtrdynamicznyod 5.5.0

gettext_with_context_{$domain}

Args 4Plik wp-includes/l10n.php

Opis — z kodu źródłowego

Filters text with its translation based on context information for a domain.

The dynamic portion of the hook name, $domain, refers to the text domain.

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_{$domain}', 'twoja_funkcja', 10, 4 );

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

Popularne w tej kategorii