Translating Strings Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // don't include this in your functions.php | |
function hsd_change_strings( $translations, $text, $domain ) { | |
if ( 'help-scout-desk' === $domain ) { | |
// Change "Description" | |
if ( 'closed' === $text ) { | |
return 'complete'; | |
} | |
// add more conditions, changing as many strings as you'd like | |
} | |
return $translations; | |
} | |
add_filter( 'gettext', 'hsd_change_strings', 10, 3 ); |