Title: plugin add_filter
Last modified: August 19, 2016

---

# plugin add_filter

 *  [bloggerprog](https://wordpress.org/support/users/bloggerprog/)
 * (@bloggerprog)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-add_filter/)
 * I am using a plugin that is using add_filter to attach a function to the_content
   function like this:
 * add_filter(‘the_content’, ‘attachedfunction’, 100);
 * Now, I want attachedfunction to do different things based on what section (not
   necessarily page) the_content is being called from.
 * The approach coming to my mind is create my own version of the_content function
   and add this line to my plugin
 * add_filter(‘the_content2’, ‘attachedfunction2’, 100);
 * anybody have an less clumsy approach?

The topic ‘plugin add_filter’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [bloggerprog](https://wordpress.org/support/users/bloggerprog/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-add_filter/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
