WordPress at a glance
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.

Usage

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

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

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.