WordPress.org

Ready to get started?Download WordPress

Forums

Quick Subscribe
Send email to admin when new user subscribes (1 post)

  1. cokeyblokey
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic