Skip to content

How to change the HTML tags of the option name ​

By default the options of the review are wrapped using h3 tags.
You can change to whatever tags fits your website using the wppr_option_name_html filter.

Here is a code snippet that completely removes the html tag of from the options of a review.
The first parameter, $id, is the id of the post used for review.

add_filter( 'wppr_option_name_html','wppr_option_name_html_filter_demo',11,2 );

function wppr_option_name_html_filter_demo( $id = '', $name = '' ) {

	$name = strip_tags ($name);
	return $name;

}
Was this helpful?