it is the custom (for somebody) to do something==the custom of doing something
:means
something that you usually do every day, or in a particular situation
It's the custom for the bride's father to pay for the wedding.
He awoke early, as was his custom