Support » Plugin: Email Users » display post author name

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    That is something that should be possible, I will take a look and see if I can add it. It would be a keyword like %POST_AUTHOR%.

    Thread Starter Mantzer

    (@mantzer)

    hey. thanks. fixed it in the meantime.

    just added to email-users.php
    function mailusers_replace_post_templates($text, $post_title, $post_author, $post_excerpt, $post_url) {
    $text = preg_replace( ‘/%POST_AUTHOR%/’, mailusers_preg_quote($post_author), $text );

    and to email_users_notify_form.php:
    $post_author = get_userdata( $post->post_author )-> display_name;

    $subject = mailusers_replace_post_templates($subject, $post_title, $post_author, $post_excerpt, $post_url);
    $mail_content = mailusers_replace_post_templates($mail_content, $post_title, $post_author, $post_excerpt, $post_url);

    but really great plugin.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    This feature has been added to Email Users v4.5.1.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘display post author name’ is closed to new replies.