- function rkv_no_curly_save( $content ) {
- // call the global
- global $post;
- // get the content
- $content = $post->post_content;
- // clean it up
- $original = array('“', '”', '’');
- $replaced = array('"', '"', '\'');
- // now style and return it
- return str_replace($original, $replaced, $content);
- }
- add_action('content_save_pre', 'rkv_no_curly_save');