I have just got married and now looking into if we need to change my wife's phil passport for her new married name? Do we need to do this before applying for Visa, before flying to UK or can it all be done in the UK?

Also i have seen talk of a CFO what is that all about? And when do we need it, if we do???

Thanks