wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



gettext_with_context_{$domain} › Les Filtres WordPress

Depuis5.5.0
Dépréciéen/a
apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain )
Paramètres: (4)
  • (string) $translation Translated text.
    Requis: Oui
  • (string) $text Text to translate.
    Requis: Oui
  • (string) $context Context information for the translators.
    Requis: Oui
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Requis: Oui
Défini(e) dans:
Codex:

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.





Source

$translation = apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain );