The hair extension should not cover any part of your skin otherwise it will prevent water from reaching to that part then your Wudhu will be invalid if water does not reach to all parts of Wudhu, and Ghusl will be invalid if water does not reach to every part of your head, face and body.
Wassalam.