WordPress Tutorials
Filtering Post Output with the_content
Appending a block of text here is four lines and a recursion bug waiting to happen. The filter runs on archives, in widgets and in the REST response, so content added without a guard ends up in places nobody was shown a preview of.