wphooks.info - gettext_with_context

gettext_with_context

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/l10n.php:
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
	/**
	 * Filters text with its translation based on context information.
	 *
	 * @since 2.8.0
	 *
	 * @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.
	 */
	return apply_filters( 'gettext_with_context', $translation, $text, $context, $domain );
}

/**
 * Retrieve the translation of $text.
 *
 * If there is no translation, or the text domain isn't loaded, the original text is returned.
 *
 * @since 2.1.0
 *