Skip to content

Instantly share code, notes, and snippets.

@tyxla
Created November 12, 2017 09:50
Show Gist options
  • Save tyxla/239c663c32f8be06629facdf771db459 to your computer and use it in GitHub Desktop.
Save tyxla/239c663c32f8be06629facdf771db459 to your computer and use it in GitHub Desktop.
fix-translation.php
<?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