Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/l10n.php | apply_filters | 505 | /** * Filters the singular or plural form of a string for a domain. * * The dynamic portion of the hook name, `$domain`, refers to the text domain. * * @since 5.5.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. */ |
Hook Parameters
Parameter 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. |