Skip to content

Deactivating Strip HTML Tags from Title not working #68

@e-reifer

Description

@e-reifer

The filter for removing html tags in the titles seems to be active, even though I removed them through the functions.php

When removing the filters in the functions.php exactly as explained in the code comments:

remove_filter( 'nav_menu_item_title', 'air_helper_strip_tags_menu_item', 10);
remove_filter( 'the_title', 'air_helper_strip_tags_menu_item', 10);

Html tags are still stripped in the titles.

Only when I remove filter completely in inc/misc.php:41, html tags are not stripped anymore. I would then remove these two lines:

add_filter( 'nav_menu_item_title', 'air_helper_strip_tags_menu_item', 10, 4 );
add_filter( 'the_title', 'air_helper_strip_tags_menu_item', 10, 2 );

I haven't quite figured out why this is happening...
Is there some other function or priority filter that runs such that the remove_filter in my functions.php is being ignored?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions