워드프레스에 새로운 가입자가 등록하였을 때 admin 주소로 이메일이 보내지도록 설정되어 있는 경우, 원치않게 SMTP 서비스의 할당량을 소모하기도 하고, admin 메일이 가입 메일로 가득 차버리게 됩니다.

아래 순서대로 조치하면 가입 이메일을 보내지 않도록 설정할 수 있습니다.

  • Admin 페이지 – 외모 – 테마 편집기
  • 우측 상단에서 사용중인 테마 선택
  • 그 아래에서 편집 파일을 functions.php 로 변경
  • 아래 PHP 코드를 제일 하단에 추가
//Disable the new user notification sent to the site admin
function smartwp_disable_new_user_notifications() {
	//Remove original use created emails
	remove_action( 'register_new_user', 'wp_send_new_user_notifications' );
	remove_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );
	
	//Add new function to take over email creation
	add_action( 'register_new_user', 'smartwp_send_new_user_notifications' );
	add_action( 'edit_user_created_user', 'smartwp_send_new_user_notifications', 10, 2 );
}
function smartwp_send_new_user_notifications( $user_id, $notify = 'user' ) {
	if ( empty($notify) || $notify == 'admin' ) {
	  return;
	}elseif( $notify == 'both' ){
    	//Only send the new user their email, not the admin
		$notify = 'user';
	}
	wp_send_new_user_notifications( $user_id, $notify );
}
add_action( 'init', 'smartwp_disable_new_user_notifications' );

하지만 이 방법도 최신 wordpress 버전에서 먹히지 않는것 같습니다. 그럼 아래 플러그인을 사용해야 합니다.