wp_send_new_user_notification_to_admin

wp_send_new_user_notification_to_admin

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_send_new_user_notification_to_admin') is found 1 times:

  • /wp-includes/pluggable.php line 2178
    2174
    2175
    2176
    2177
    2178
    2179
    2180
    2181
    2182
    2183
    2184
    *
     * @param bool    $send Whether to send the email. Default true.
     * @param WP_User $user User object for new user.
     */
    $send_notification_to_admin = apply_filters( 'wp_send_new_user_notification_to_admin', true, $user );
     
    if ( 'user' !== $notify && true === $send_notification_to_admin ) {
     
        $admin_user = get_user_by( 'email', get_option( 'admin_email' ) );
     
        if ( $admin_user ) {