WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Quick Subscribe] Send email to admin when new user subscribes

[Plugin: Quick Subscribe] Send email to admin when new user subscribes

  • I had this problem while using the AJAX version of this plugin. For anyone that wants the plugin to send an email to admin when new user subscribes, you need to add the function into quicksubscribe.php in the plugins folder.

    the function is:

    wp_new_user_notification($user_id);

    Look for line 57:

    $user = new WP_User($user_id);
    $user->set_role('subscriber');

    and change to:

    $user = new WP_User($user_id);
    wp_new_user_notification($user_id);
    $user->set_role('subscriber');

    If you want to also email the subscriber (although I see no point in this) then change:

    wp_new_user_notification($user_id);

    to:

    wp_new_user_notification($user_id, $user_pass);

    Hope this helps!

    http://wordpress.org/extend/plugins/quick-subscribe/

  • The topic ‘[Plugin: Quick Subscribe] Send email to admin when new user subscribes’ is closed to new replies.