Title: Plugin development help
Last modified: August 19, 2016

---

# Plugin development help

 *  [MAzCastro](https://wordpress.org/support/users/fmacastro/)
 * (@fmacastro)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-development-help/)
 * Hi
 * I need help. This is not about a problem is more like a push up start.
 * lets say I want to build a plug-in to add a button to the end of every post (
   eg. a retwitt button) what should i target to do it?
 * I’ve read a lot about it, but I really couldn’t figure out how to target the 
   bottom of a post.
 * For now I’ve managed to do it by using a filter and hooking it to the “comments
   template”
 * `add_filter('comments_template' , 'myFunction');`
 * But since not all the themes have this “comments template” so my plug-in will
   never be “universal” .
 * What should be the correct way to do it? can someone give me a clue please?
 * Thanks!
 * MAC 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-development-help/#post-1254044)
 * Hook to ‘the_content’
 *     ```
       function add_after_content($content) {
         return $content.'mybutton';
       }
       add_filter('the_content', add_after_content);
       ```
   
 *  Thread Starter [MAzCastro](https://wordpress.org/support/users/fmacastro/)
 * (@fmacastro)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-development-help/#post-1254219)
 * apljdi So simple, so perfect!
 * One word: Thanks!
 * MAC 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin development help’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [MAzCastro](https://wordpress.org/support/users/fmacastro/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-development-help/#post-1254219)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
