wp_send_new_user_notification_to_user
wp_send_new_user_notification_to_user
Appears in: wordpress-6.1, wordpress-6.1.1, wordpress-6.2, wordpress-6.2.1, wordpress-6.2.2, wordpress-6.3, wordpress-6.3.1, wordpress-6.3.2, wordpress-6.4, wordpress-6.4.1, wordpress-6.4.2, wordpress-6.4.3, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7, wordpress-6.7.1, wordpress-6.7.2
Hook Type: filter
See hook in action
Displaying hooks found in version: wordpress-6.7.2apply_filters('wp_send_new_user_notification_to_user') is found 1 times:
- /wp-includes/pluggable.php line 22432239224022412242224322442245224622472248
*
* @param bool
$send
Whether to send the email. Default true.
* @param WP_User
$user
User object
for
new
user.
*/
$send_notification_to_user
= apply_filters(
'wp_send_new_user_notification_to_user'
, true,
$user
);
// `$deprecated` was pre-4.3 `$plaintext_pass`. An empty `$plaintext_pass` didn't sent a user notification.
if
(
'admin'
===
$notify
|| true !==
$send_notification_to_user
|| (
empty
(
$deprecated
) &&
empty
(
$notify
) ) ) {
return
;
}