Support » Plugin: Postie » Filter Postie

  • Resolved ColePhoenix1969


    Hey: This is probably an easy questions for the coders, but for me is very difficult.

    I am trying to use the filter postie to strip out unwanted parts of the subject from the email. So, for example, Let’s say the subject of the email is always the same (from a list) and the subject is “Same Thing Here Needs Stripped This Is The Actual Subject”

    So, how would I remove “Same Thing Here Needs Stripped”?

    This is what I have in filter_postie, but it doesn’t seem to work….

    function filter_title($post) {
        //this function strips "(Same Thing Here Needs Stripped)" from the title (subject)
    	  if (stristr($post, 'Same Thing Here Needs Stripped'))
            return get_option(" ");
        return $post;

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter Postie’ is closed to new replies.