WordPress at a glance
filter is not described

gettext_with_context_(domain) filter-hook . WP 5.5.0

Filters text with its translation based on context information for a domain.

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

Usage

add_filter( 'gettext_with_context_(domain)', 'filter_function_name_2087', 10, 4 );
function filter_function_name_2087( $translation, $text, $context, $domain ){
	// filter...

	return $translation;
}
$translation(string)
Translated text.
$text(string)
Text to translate.
$context(string)
Context information for the translators.
$domain(string)
Text domain. Unique identifier for retrieving translated strings.

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

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

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

translate_with_gettext_context()
gettext_with_context_(domain)
wp-includes/l10n.php 271
$translation = apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain );

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

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