Aoa. If a girl and a guy gets married in some masjid secretly infront of unknown imams and have mature witnesses then after some months guy divorces the girl in person alone. Now is it compulsory for them to tell to other people or will divorce come to in effect when he pronounced the words of divorce?
As some people say it is compulsory that people should know about it only then divorce will happen
Wa’alaykum as Salam wa rahmatullahi wa barakatuhu,
The divorce comes into effect as soon as the husband pronounced the words of divorce.
There is no need for witnesses, or for divorce to be done in the presence of others.