wpseek.com
A WordPress-centric search engine for devs and theme authors



ngettext_with_context_{$domain} › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( "ngettext_with_context_{$domain}", $translation, $single, $plural, $number, $context, $domain )
Parameters: (6)
  • () translation Translated text.
    Required: Yes
  • () single The text to be used if the number is singular.
    Required: Yes
  • () plural The text to be used if the number is plural.
    Required: Yes
  • () number The number to compare against to use either the singular or plural form.
    Required: Yes
  • () context Context information for the translators.
    Required: Yes
  • () domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
Defined at:
Codex:

Filters the singular or plural form of a string with gettext context for a domain.

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




Source

$translation = apply_filters( "ngettext_with_context_{$domain}", $translation, $single, $plural, $number, $context, $domain );