Translating Strings Example
<?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 ); |