WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
Notifications module: show post content in email (7 posts)

  1. schulte
    Member
    Posted 2 years ago #

    Decided to add the post content to the email notification. Added the top and bottom lines and modified the middle one.

    $content = get_post($post->ID);

    $body .= sprintf( __( 'Author: %1$s (%2$s)', 'edit-flow' ), $post_author->display_name, $post_author->user_email ) . "\r\n\r\n";
    $body .= sprintf( __( 'Summary: %s', 'edit-flow' ), $content->post_content ) . "\r\n\r\n\r\n";

    The email notifications seemed a little lacking without it.

    http://wordpress.org/extend/plugins/edit-flow/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    Probably not the best idea to modify the core of the plugin, as your changes won't persist through upgrades.

    You'll be happy to know "pluggable" HTML email notifications are on our roadmap though!

  3. schulte
    Member
    Posted 2 years ago #

    Yep. It'll be something I'll need to watch for as upgrades happen. I hadn't seen the that on the Issue list but it would be a welcome addition.

  4. schulte
    Member
    Posted 1 year ago #

    Edit Flow / Include post in email notification: just a patch to 0.7.3 to include post content into email notifications.

    Added a dropdown to the Notifications module.

  5. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Mind creating a pull request for this?

    For the core Edit Flow plugin, rather than send the post content every time, I think I'd prefer adding a filter where you can modify the content of the HTML (which is how you'd add the post content in your particular case). When it's ready, we can add a snippet or two to extend showing how to modify the content. What do you think about this?

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    I've filed an issue for this as I think a filter or two would be really useful.

  7. schulte
    Member
    Posted 1 year ago #

    Sounds good Daniel.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic