Created
January 9, 2019 22:03
-
-
Save KaineLabs/19bb482669f279cbee1148c6d53e4078 to your computer and use it in GitHub Desktop.
Change "Follow" & "Unfollow" Text.
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 | |
/** | |
* Change "Follow" & "Unfollow" Text. | |
*/ | |
function yzc_follows_translate_text( $translated_text ) { | |
switch ( $translated_text ) { | |
case 'Follow' : | |
$translated_text = __( 'New Follow Text', 'youzer' ); | |
break; | |
case 'Unfollow' : | |
$translated_text = __( 'New unFollow Text', 'youzer' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext_with_context', 'yzc_translate_text', 99999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment