Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2016 16:35
What would you like to do?
* Change DPS titles to h3
function be_dps_titles_to_h3( $output, $original_atts, $image, $title, $date, $excerpt, $inner_wrapper, $content, $class ) {
return str_replace( $title, '<h3>' . $title . '</h3>', $output );
add_filter( 'display_posts_shortcode_output', 'be_dps_titles_to_h3', 10, 9 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment