Answer:
Praise be to Allah, the Lord of the World; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
The custom mentioned in the above question is not from Shari'a. So, if it is practised by mutual consent of a wife and husband, not considering it as a religious act, then it is permissible since it comes under the rulings of customs not under the forms of worship.
Allah knows best.