wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



gettext_with_context_{$domain} › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain )
Parameter: (4)
  • (string) $translation Translated text.
    Erforderlich: Ja
  • (string) $text Text to translate.
    Erforderlich: Ja
  • (string) $context Context information for the translators.
    Erforderlich: Ja
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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