/facet/title_tag

DescriptionDescription

This filter is called when the facet title is rendered.

It allows to modify the HTML tag name of the facet title.

ArgumentsArguments

ArgumentTypeDescription
$tag_name stringTitle tag name (h4 by default)

ExampleExample

PHP
functions.php
function prefix_facet_title_tag( $tag_name ) {

	// We replace the default h4 tag by p tag.
	return 'p';

}

add_filter( 'wp_grid_builder/facet/title_tag', 'prefix_facet_title_tag', 10, 1 );