Only converts from Anglicanism are ordained under the 1980 Pastoral Provision and it is not automatic. Other protestant converts who are married and seek ordination receive a dispensation from the discipline of celibacy from the Holy See. All of those converts must agree to adopt the discipline of celibacy for the remainder of their life if their spouse precedes them in death. No agreement, no ordination.
In addition, 21 of the 22 Churches sui juris which comprise the Catholic Church, ordain, as a norm, married men. However, Bishops in all the Churches must be celibate.
Same in Orthodoxy. Which is why I said “...married men can be ordained but ordained men cannot then get married.”
It’s not unheard of that you will see young Orthodox seminarians delay ordination if they are looking for a wife, and in many cases will not start Seminary until after they are married.