gettext filter-hook . WP 2.0.11
Filters text with its translation.
Usage
add_filter( 'gettext', 'filter_function_name_1845', 10, 3 ); function filter_function_name_1845( $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.
Changelog
Since 2.0.11 | Introduced. |
Where the hook is called
gettext
wp-includes/l10n.php 189
$translation = apply_filters( 'gettext', $translation, $text, $domain );