Description
Filters the singular or plural form of a string.
Occurrences
Filename | Line Number |
---|---|
wp-includes/l10n.php | 497 |
Parameters
Type | Name | Description |
---|---|---|
string | $translation | Translated text. |
string | $single | The text to be used if the number is singular. |
string | $plural | The text to be used if the number is plural. |
int | $number | The number to compare against to use either the singular or plural form. |
string | $domain | Text domain. Unique identifier for retrieving translated strings. |
PHP Doc
/**
* Filters the singular or plural form of a string.
*
* @since 2.2.0
*
* @param string $translation Translated text.
* @param string $single The text to be used if the number is singular.
* @param string $plural The text to be used if the number is plural.
* @param int $number The number to compare against to use either the singular or plural form.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
*/