Plugin Calling Content Filters 3 times
-
I was having some trouble where a content filter was being called 3 times. I narrowed it down to the Yoast SEO plugin. I rely quite heavily on this plugin and dont want to remove it, but if its calling “the_content” 2 times with the 3rd being the main call, i cant continue to use it.
A simple action like the one below will show that the filter is being called 3 times each time the page loads. It will appear once in the body of the post and 2 times in the head of the page. When i deactivate Yoast, the echo will only show up in the post body.
add_action( 'the_content', 'outputsomething'); function outputsomething() { echo "test"; }
This is a serious issue that has me quite worried about how much damage this plugin is going to do to sites as they grow larger. Anyone know whats going on here?
- The topic ‘Plugin Calling Content Filters 3 times’ is closed to new replies.