-
-
Save Zodiac1978/1e33b0f58db8333f5f0b to your computer and use it in GitHub Desktop.
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 | |
function md_filter_curly_double_quotes( $translations, $text, $context, $domain ) { | |
if ( 'opening curly double quote' == $context && '“' == $text ) { | |
$translations = '„'; | |
} else if ( 'closing curly double quote' == $context && '”' == $text ) { | |
$translations = '“'; | |
} | |
return $translations; | |
} | |
add_filter( 'gettext_with_context', 'md_filter_curly_double_quotes', 888, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment