WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about ngettext_with_context

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/l10n.php apply_filters 550 /**
* Filters the singular or plural form of a string with gettext context.
*
* @since 2.8.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 $context Context information for the translators.
* @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 $context Context information for the translators.
string $domain Text domain. Unique identifier for retrieving translated strings.