apply_filters( 'relevanssi_missing_terms_tag', string $tag = 's' )
Filters the HTML tag used to wrap the missing terms in the list of missing terms.
Parameters
$tag
(string) The HTML tag without brackets, default s
.
More information
When Relevanssi prints out the list of missing terms, each term is by default wrapped with a <s>
tag for strikethrough, like Google does. If you don’t like that, you can use this filter hook to change or remove the tag:
// Return an empty string to remove the tag. add_filter( 'relevanssi_missing_terms_tag', '__return_empty_string' ); add_filter( 'relevanssi_missing_terms_tag', function( $tag ) { return 'span'; } );
To modify the whole template, use relevanssi_missing_terms_template
and to modify the “Must have” part (in Relevanssi Premium), use relevanssi_missing_terms_must_have
.