Created
November 12, 2017 09:50
-
-
Save tyxla/239c663c32f8be06629facdf771db459 to your computer and use it in GitHub Desktop.
fix-translation.php
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 | |
add_filter( 'gettext', 'dyad_translate_read_more_to_bg', 20, 3 ); | |
function dyad_translate_read_more_to_bg( $translated_text, $text, $domain ) { | |
if ( $text === 'Read More' ) { | |
return 'Прочети още'; | |
} | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment