title: How to Turn Off New User Notification Emails in WordPress only for admin
body: <p>I am using <code>register_new_user</code> action to disable the email notification for admin but when a user register's it still generates an email to admin.</p>
  
  <p>I am using <strong>Gravity Forms</strong> for User Registration</p>
  
  <p>Here is my code.</p>
  
  <pre><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);
  }
  </code></pre>
  
  <p>Any help will be greatly appreciated.</p>