gettext

gettext

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('gettext') is found 1 times:

  • /wp-includes/l10n.php line 206
    	 * @param string $translation Translated text.
    	 * @param string $text        Text to translate.
    	 * @param string $domain      Text domain. Unique identifier for retrieving translated strings.
    	 */
    	$translation = apply_filters( 'gettext', $translation, $text, $domain );
    
    	/**
    	 * Filters text with its translation for a domain.
    	 *
    	 * The dynamic portion of the hook name, `$domain`, refers to the text domain.
    	 *
    

See this hook used in plugins:

Examples using gettext