mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2025-08-17 18:11:08 +08:00
16 lines
372 B
PHP
16 lines
372 B
PHP
<?php
|
|
|
|
/*
|
|
* Plugin Name: Disable new user registration email to admin
|
|
* Plugin URI: https://github.com/szepeviktor/wordpress-website-lifecycle
|
|
*/
|
|
|
|
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
|
|
);
|