I'm trying to write a simple text replacement plugin, but I'm having an issue that I can't figure out how to troubleshoot.
This is the test plugin I'm using as a starting point. It works fine on one Wordpress installation running locally (installation A), but on another local installation (installation B), it has no effect on the post content. It's strange because installation b is working fine and I don't see any other bugs/issues.
<?php
/*
* Plugin Name: Thanks for Reading
*/
add_filter( 'the_content', 'tfr_the_content' );
function tfr_the_content( $content ) {
return $content . '<p>Thanks for Reading!</p>';
}
Any thoughts on how to troubleshoot this?
the_excerpt
on your installation B