user_{$field}

user_{$field}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('user_{$field}') is found 1 times:

  • /wp-includes/user.php line 1883
    1879
    1880
    1881
    1882
    1883
    1884
    1885
    1886
    1887
    1888
    1889
             * @param mixed  $value   The user object value to sanitize.
             * @param int    $user_id User ID.
             * @param string $context The context to filter within.
             */
            $value = apply_filters( "user_{$field}", $value, $user_id, $context );
        }
    }
     
    if ( 'user_url' === $field ) {
        $value = esc_url( $value );
    }