edit_user_{$field}

edit_user_{$field}

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

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

  • /wp-includes/user.php line 1837
    1833
    1834
    1835
    1836
    1837
    1838
    1839
    1840
    1841
    1842
    1843
         *
         * @param mixed $value   Value of the prefixed user field.
         * @param int   $user_id User ID.
         */
        $value = apply_filters( "edit_user_{$field}", $value, $user_id );
    }
     
    if ( 'description' === $field ) {
        $value = esc_html( $value ); // textarea_escaped?
    } else {
        $value = esc_attr( $value );