A WordPress-centric search engine for devs and theme authors



gettext_with_context_{$domain} ›

Since5.5.0
Deprecatedn/a
apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain )
Parameters: (4)
  • (string) $translation Translated text.
    Required: Yes
  • (string) $text Text to translate.
    Required: Yes
  • (string) $context Context information for the translators.
    Required: Yes
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
Defined at:
Codex:

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

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





Source

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