• 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

    (@iranianprince)

    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.