• Resolved Mark Burgess

    (@markburgess)


    We have emails coming in with “Fw:” in the title as forward. Wouldn’t it be great if there was a setting for title processing:

    Set Subject As Title: YES/Use Default
    Trim from subject start:___ characters or to this __ string
    Trim from subject end: ____ characters or to this __ string

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    You can do this with a simple bit of code. See https://postieplugin.com/extending/

    
    add_filter('postie_post_before', 'my_fixtitle');
    function my_fixtitle($post) {
        if (stripos($post['post_title'],'fw:')===0){
            $post['post_title'] = trim(substr($post['post_title'], 3));
        }
        return $post;
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Trimming Subject’ is closed to new replies.