Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Change DPS titles to h3
  5. *
  6. */
  7. function be_dps_titles_to_h3( $output, $original_atts, $image, $title, $date, $excerpt, $inner_wrapper, $content, $class ) {
  8. return str_replace( $title, '<h3>' . $title . '</h3>', $output );
  9. }
  10. add_filter( 'display_posts_shortcode_output', 'be_dps_titles_to_h3', 10, 9 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement