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



gettext_{$domain} › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( "gettext_{$domain}", $translation, $text, $domain )
Parameter: (3)
  • (string) $translation Translated text.
    Erforderlich: Ja
  • (string) $text Text to translate.
    Erforderlich: Ja
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Erforderlich: Ja
Definiert in:
Codex:

Filters text with its translation for a domain.

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





Quellcode

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