Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function jchwebdev_rant_quote_question( $content ) {
- global $post;
- $pattern = '/rcq/';
- $replacement = '<span class="interview initials">RC</span>$1';
- if ($post->post_status == 'draft') {
- return preg_replace($pattern, $replacement, $content);
- }
- else
- return $content;
- }
- add_filter( 'content_save_pre' , 'jchwebdev_rant_quote_question' , 10, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement