Skip to content

Instantly share code, notes, and snippets.

<?php
function md_filter_curly_double_quotes( $translations, $text, $context, $domain ) {
if ( 'opening curly double quote' == $context && '&#8220;' == $text ) {
$translations = '&#8222;';
} else if ( 'closing curly double quote' == $context && '&#8221;' == $text ) {
$translations = '&#8220;';
}
return $translations;