wordpress-website-lifecycle/mu-plugins/_core-reg-new-user.php

17 lines
372 B
PHP
Raw Permalink Normal View History

2022-12-21 17:51:01 +00:00
<?php
2023-01-26 22:48:51 +00:00
/*
* Plugin Name: Disable new user registration email to admin
2023-08-04 10:34:27 +00:00
* Plugin URI: https://github.com/szepeviktor/wordpress-website-lifecycle
2023-01-26 22:48:51 +00:00
*/
remove_action('register_new_user', 'wp_send_new_user_notifications');
add_action(
'register_new_user',
static function ($user_id) {
wp_new_user_notification($user_id, null, 'user');
},
10,
1
);