WordPress at a glance
filter is not described

gettext_(domain) filter-hook . WP 5.5.0

Filters text with its translation for a domain.

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

Usage

add_filter( 'gettext_(domain)', 'filter_function_name_2973', 10, 3 );
function filter_function_name_2973( $translation, $text, $domain ){
	// filter...

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

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

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

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

translate()
gettext_(domain)
wp-includes/l10n.php 202
$translation = apply_filters( "gettext_{$domain}", $translation, $text, $domain );

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

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