Filters the singular or plural form of a string for a domain.
$translationstring$singlestring$pluralstring$numberint$domainstringwp-includes/l10n.php:512_n() * @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. */ $translation = apply_filters( "ngettext_{$domain}", $translation, $single, $plural, $number, $domain ); return $translation;} /** * Translates and retrieves the singular or plural form based on the supplied number, with gettext context.Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.