Call the_content filter once and only once

If you hook into the the_content filter to modify a blog post’s content, you may notice that the hook gets executed more than one time. This can cause your page load time to increase. The code below is an example of how to ensure your the_content filter function is called once and only once during the page load of a single WordPress Post|Page|Product|etc…