wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



ngettext › Filtr WordPress Hooks

Od2.2.0
Przestarzałyn/a
› apply_filters( 'ngettext', $translation, $single, $plural, $number, $domain )
Parametry: (5)
  • () translation Translated text.
    Wymagane: Tak
  • () single The text to be used if the number is singular.
    Wymagane: Tak
  • () plural The text to be used if the number is plural.
    Wymagane: Tak
  • () number The number to compare against to use either the singular or plural form.
    Wymagane: Tak
  • () domain Text domain. Unique identifier for retrieving translated strings.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the singular or plural form of a string.





Źródło

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