WordPress.org

Forums

Update Notifier
[resolved] SUggestion: use url in subject (3 posts)

  1. Marco
    Member
    Posted 4 years ago #

    I take care of a bunch of blogs and thought it's be swell to have the domain/url/blogname in the subject line of the email that goes out - just a way for me to prioritize a bit...

    $subject = get_bloginfo('name') . ": Updates are available for your WordPress site";

    The name and 'Updates' appear first in the subject as to not disappear if the subject is cut off...

    And... a big thanks for this plugin!

  2. Jon Cave
    WordPress Dev
    Plugin Author

    Posted 4 years ago #

    Good suggestion, thanks. But instead of just adding this I will filter the subject (and maybe some other strings if it makes sense to) so that it can be customized however the site admin wants and stay customized through a plugin update.

  3. Jon Cave
    WordPress Dev
    Plugin Author

    Posted 4 years ago #

    Added the filter 'updatenotifier_subject' in 1.4.1. Example usage:

    add_filter( 'updatenotifier_subject', 'updatenote_custom_subject' );
    function updatenote_custom_subject() {
        return '[' . home_url() . '] Updates available for this WordPress site';
    }

    Place that in a file which doesn't get modified by any updates (say a custom plugin or in a custom theme's functions.php).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic