Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created July 14, 2023 14:15
Show Gist options
  • Save plugin-republic/4cb9c186e59cebeda3cefc4e7019d0a1 to your computer and use it in GitHub Desktop.
Save plugin-republic/4cb9c186e59cebeda3cefc4e7019d0a1 to your computer and use it in GitHub Desktop.
<?php
/**
* Filter heading tag for group headings
*/
function prefix_filter_group_title( $title, $group, $group_id ) {
$group_title = pewc_get_group_title( $group_id, $group, true );
return sprintf( '<h3>%s</h3>', esc_html( $group_title ) ); // Change your tags here
}
add_filter( 'pewc_filter_group_title', 'prefix_filter_group_title', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment