WordPress at Your Fingertips
filter is not described

ngettext_(domain) filter-hook . WP 5.5.0

Filters the singular or plural form of a string for a domain.

The dynamic portion of the hook, $domain, refers to the text domain.


add_filter( 'ngettext_(domain)', 'filter_function_name_1926', 10, 5 );
function filter_function_name_1926( $translation, $single, $plural, $number, $domain ){
	// filter...

	return $translation;
Translated text.
The text to be used if the number is singular.
The text to be used if the number is plural.
The number to compare against to use either the singular or plural form.
Text domain. Unique identifier for retrieving translated strings.

Where the hook is called

wp-includes/l10n.php 496
$translation = apply_filters( "ngettext_{$domain}", $translation, $single, $plural, $number, $domain );

Where in WP core the hook is used WordPress

Usage not found.