filtrod 2.8.0
gettext_with_context
Opis — z kodu źródłowego
Filters text with its translation based on context information.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$translation | string | Translated text. |
$text | string | Text to translate. |
$context | string | Context information for the translators. |
$domain | string | Text 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
}
// 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