Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivating Strip HTML Tags from Title not working #68

Open
e-reifer opened this issue May 27, 2023 · 0 comments
Open

Deactivating Strip HTML Tags from Title not working #68

e-reifer opened this issue May 27, 2023 · 0 comments

Comments

@e-reifer
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants