wppaste
WordPress

apply_filters( "gettext_with_context_{$domain}", string $translation, string $text, string $context, string $domain )

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

Description

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

Parameters

$translationstring
Translated text.
$textstring
Text to translate.
$contextstring
Context information for the translators.
$domainstring
Text domain. Unique identifier for retrieving translated strings.

Fired at · 1

  • wp-includes/l10n.php:288translate_with_gettext_context()

Source

	 *	 * @param string $translation Translated text.	 * @param string $text        Text to translate.	 * @param string $context     Context information for the translators.	 * @param string $domain      Text domain. Unique identifier for retrieving translated strings.	 */	$translation = apply_filters( "gettext_with_context_{$domain}", $translation, $text, $context, $domain ); 	return $translation;} /** * Retrieves the translation of $text.

History

Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.