apply_filters( ‘wp_send_new_user_notification_to_user’, bool $send, WP_User $user )

In this article

Filters whether the user is notified of their new user registration.

Parameters

$sendbool
Whether to send the email. Default true.
$userWP_User
User object for new user.

Source

$send_notification_to_user = apply_filters( 'wp_send_new_user_notification_to_user', true, $user );

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.