Elementor | Remove the_content filter

Question

Elementor injects it’s content through the_content filter and because I have a couple of this:

echo apply_filters('the_content', $fields);

I get duplicates of the elementor content on the same page. What I am trying to do is to disable elementor and re-enable it. I tested the followings but they don’t work:

remove_filter('the_content', ['ElementorFrontend', 'apply_builder_in_content']);
remove_filter('the_content', [ElementorPlugin::instance()->frontend, 'apply_builder_in_content']);

Is there anything else I can try?

0
DimChtz 4 months 0 Answers 15 views 0

Leave an answer