Title: Developing Custom filter
Last modified: August 19, 2016

---

# Developing Custom filter

 *  [iranianprince](https://wordpress.org/support/users/iranianprince/)
 * (@iranianprince)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/developing-custom-filter/)
 * Hi
    I’m developing a custom filter, which is using content_save_pre with no documentation
   in codex 🙁 filter. the filter takes only one argument which is the content(post
   body).
 * Now I need:
    1.The post object or id(which I can take the whole post from it)
   or the permanent url.( one of the 3 is enough) 2. a way to set an option in the**
   new post** page of wordpress(where the user is creating a new post) so the user
   can take of the filter per post.
 * Regards

Viewing 1 replies (of 1 total)

 *  Thread Starter [iranianprince](https://wordpress.org/support/users/iranianprince/)
 * (@iranianprince)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/developing-custom-filter/#post-1538661)
 * Hi
    I managed to use the the_content filter to insert the link to the post when
   showing the post to the users so that solves my first problem.
 * for the second problem I’m looking into something like the **disable comments**
   and **disable trackbacks** in the post page so I could add a **disable foobar
   plugin** in the posting page?

Viewing 1 replies (of 1 total)

The topic ‘Developing Custom filter’ is closed to new replies.

## Tags

 * [content_save_pre](https://wordpress.org/support/topic-tag/content_save_pre/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)

 * 1 reply
 * 1 participant
 * Last reply from: [iranianprince](https://wordpress.org/support/users/iranianprince/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/developing-custom-filter/#post-1538661)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
