Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* 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
You can’t perform that action at this time.