• I am using register_new_user action to disable the email notification for admin but when a user register’s it still generates an email to admin.

    I am using Gravity Forms for User Registration

    Here is my code.

    remove_action(‘register_new_user’, ‘wp_send_new_user_notifications’);
    add_action(‘register_new_user’, ‘ecpd_send_new_user_notifications’);

    function ecpd_send_new_user_notifications($user_id, $notify = ‘user’) {
    wp_new_user_notification($user_id, null, $notify);
    }

    Any help will be greatly appreciated.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to Turn Off New User Notification Emails in WordPress only for admin’ is closed to new replies.