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.


add_filter( 'ngettext_(domain)', 'filter_function_name_4053', 10, 5 );
function filter_function_name_4053( $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.

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

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

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

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

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

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