• Resolved sergioshrek

    (@sergioshrek)


    Hi all,
    I’m using this pluging for my site. I’d like to change the email text with whom Postie sends the confirmation message to the article sender

    Where can I change this text?

    Thank you for you contribute

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

    (@wayneallen-1)

    I tried this and it works but it only adds text to the default message.

    Can I replace the default message with my translated message?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Please post the code for your filter.

    Basically I just copied the examples from the two links and changed German to Swedish.

    // Postie Swedish title
    add_filter('postie_email_notify_subject', 'my_postie_email_notify_subject', 10, 3);
    
    function my_postie_email_notify_subject($subject, $postemail, $postid) {
     return $subject . ' / Ditt inl?gg ?r publicerat';
    }
    
    // Postie Swedish body
    add_filter('postie_email_notify_body', 'my_postie_email_notify_body', 10, 3);
    
    function my_postie_email_notify_body($body, $postemail, $postid) {
     return $body . "\nNu ?r ditt inl?gg publicerat p? webbsidan";
    }
    Plugin Author Wayne Allen

    (@wayneallen-1)

    Just return the translated text.

    // Postie Swedish title
    add_filter('postie_email_notify_subject', 'my_postie_email_notify_subject', 10, 3);
    
    function my_postie_email_notify_subject($subject, $postemail, $postid) {
     return 'Ditt inl?gg ?r publicerat';
    }
    
    // Postie Swedish body
    add_filter('postie_email_notify_body', 'my_postie_email_notify_body', 10, 3);
    
    function my_postie_email_notify_body($body, $postemail, $postid) {
     return "Nu ?r ditt inl?gg publicerat p? webbsidan";
    }

    Brilliant Wayne!

    Thanks for the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change Postie confirmation message’ is closed to new replies.