This may be a weird question. When I add plugins like the Facebook Like Button and Gigpress, they offer options to insert content before or after each single-page blog post. For example, I have both Gigpress and the FB Like button set to add content below the text in my posts, and that is working, be it imperfectly. The like button shows up below the post text.
So how is this accomplished on the back end? It doesn’t look like the templates or other php files are being altered by the plugins, but there also doesn’t seem to be any obvious php code that would be pulling in the data. Is this type of functionality somehow built into the “framework”?
The reason I’m asking is for formatting reasons…the content that is added by the two plugins conflicts and looks bad. I’m trying to figure out how to modify the css.
Thanks
They are achieving it with Filters, Actions and Hooking into them.
In your case – with
the_content
filter ..Example ( from codex ) :
A simpler to understand example :
to see this example in action , put it in your functions.php
This is actually the single most important step to understanding wordpress, and starting to write plugins. If you really are interested , read the links above.
Also , Open the plugin files you have just mentioned and look for the
Filters and Actions…