I was trying to add a content filter and i discovered that the filter was being called 3 times in total. I tried slowly deleting all of the plugins and eventually found that it was Yoast that was causing this. This is absolutely insane. This means that ever single content filter gets called 3 times every single time? The performance issues alone are seriously bad. Any idea what is causing this to happen. Surely this plugin would not be released if it was calling the content 2 times.
For example. This hook will display one in the content (it does this without the plugin installed) and 2 more times at the top of the page when Yoast SEO is installed.
add_action( 'the_content', 'outputsomething');
function outputsomething()
{
echo "test";
}