WordPress Post-Notification – Show the author in email subject

I was trying to fix a WordPress Post Notification plugin to include the post author in the emails subject. Instead of inserting the author name it was leaving the @@author in the subject.

A little digging around found me the solution –

In sendmail.php->post_notification_create_email(), find –

$subject = get_option('post_notification_subject');

and add a new line after that –

$subject = str_replace('@@author', $post_author, $subject); 

Ref – Post Notification forum

Leave a Reply

Your email address will not be published. Required fields are marked *


7 − one =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>