After marriage my wife adopting her father's family name i.e her lastname before marriage as her middle name.

is this legal for official documents i.e passport IDs etc..?

Her mum seems to think it's legal in philippines but I argued that to adopt her father's family name as middle name she must make this name change in court in front of a judge to make it legal in official documents.

for an example girl name before marriage: Jenny Christie Eridiano
husband name: John Peters

A) Girl's name after marriage: Jenny Eridiano Peters (moved original last name to middle and throw away old middle name christie)
-This I believe is WRONG


B) My understanding is after marriage her name should be: Jenny Christie Peters


My question is which one legally correct A or B

which one have your wife adopted? If she adopted A, did it cause any issues with applying spouse VISA etc...


thanks