I had to look up “Yatta”. I like that word.
Glad you got it working! I guess the goal here is to add something so that that the plugin is only activated within a particular template.
Here’s what I’m thinking. I can’t test anything right now so please let me know if I’m way off here, but:
1. You can remove the ‘more link’ filter using remove_filter
(reference) within your other theme files. E.g.:
remove_filter('the_content_more_link', wt_rmrh_morelink_filter);
2. Within the template where you do want the plugin to work, just add the global $more;$more = 0;
code before your call to the_content
. (And obviously done’t call remove_filter
)
This way you’re not messing with the actual plugin code. Does that make sense? Would that work?