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



ngettext › WordPress Filter Hooks

Seit2.2.0
Veraltetn/v
apply_filters( 'ngettext', $translation, $single, $plural, $number, $domain )
Parameter: (5)
  • (string) $translation Translated text.
    Erforderlich: Ja
  • (string) $single The text to be used if the number is singular.
    Erforderlich: Ja
  • (string) $plural The text to be used if the number is plural.
    Erforderlich: Ja
  • (int) $number The number to compare against to use either the singular or plural form.
    Erforderlich: Ja
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the singular or plural form of a string.





Quellcode

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