wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



ngettext › Hooks de Filtros WordPress

Desde2.2.0
Obsoleton/a
apply_filters( 'ngettext', $translation, $single, $plural, $number, $domain )
Parâmetros: (5)
  • (string) $translation Translated text.
    Required: Yes
  • (string) $single The text to be used if the number is singular.
    Required: Yes
  • (string) $plural The text to be used if the number is plural.
    Required: Yes
  • (int) $number The number to compare against to use either the singular or plural form.
    Required: Yes
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
Definido em:
Codex:

Filters the singular or plural form of a string.





Fonte

$translation = apply_filters( 'ngettext', $translation, $single, $plural, $number, $domain );