wp_send_new_user_notification_to_user

wp_send_new_user_notification_to_user

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_send_new_user_notification_to_user') is found 1 times:

  • /wp-includes/pluggable.php line 2210
    		 *
    		 * @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;
    		}
    
    

See this hook used in plugins: