It depends on the country you are having your PhD. For instance, in my country, Portugal, the mother can interrupt the study for 3 months, around the birth date, but continues to be paid. Unfortunately, fathers are not included and no other situation is considered,