WordPress at Your Fingertips
filter is not described

ngettext_with_context_(domain) filter-hook . WP 5.5.0

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

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


add_filter( 'ngettext_with_context_(domain)', 'filter_function_name_8684', 10, 6 );
function filter_function_name_8684( $translation, $single, $plural, $number, $context, $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.
Context information for the translators.
Text domain. Unique identifier for retrieving translated strings.


Since 5.5.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.