WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Update Notifier] SUggestion: use url in subject

[Resolved] [Plugin: Update Notifier] SUggestion: use url in subject

  • Marco
    Member

    @mimecine

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jon Cave
    WordPress Dev

    @duck_

    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.

    Plugin Author Jon Cave
    WordPress Dev

    @duck_

    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).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Update Notifier] SUggestion: use url in subject’ is closed to new replies.