WordPress at a glance
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_104', 10, 6 );
function filter_function_name_104( $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.

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

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

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

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

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

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