Her period became irregular because of taking pills to prevent menstruation; what should she do about prayer and fasting?
Question

                A few years ago, a few months after I reached puberty, my family decided to go for Hajj. My period began a few days before the date of travel, so my mother and I were asked to take pills to stop our menses, and I did that. Since that time, my period has not been regular, to the extent that it does not come for several months, and sometimes when it starts it does not stop. My period began ten or eleven days before Ramadan this year, then I did ghusl after approximately nine days, then I noticed that it began again after two days. My grandmother told me not to fast at the beginning of Ramadan, and I did not fast the first two days of the month, then I did ghusl and fasted on the third day, even though the bleeding was still ongoing. That is because I think I read a hadith in which the Prophet (blessings and peace of Allah be upon him) allowed a woman to pray after wrapping herself in cotton or heavy cloth, because it was not menstrual bleeding. I hope you can explain to me clearly what I should do.
Praise be to Allah.Firstly:
The way to know whether a woman has become pure from menses is through one of two signs: emission of the white discharge, or dryness and complete cessation of bleeding. In that case she should pray and fast, then if the bleeding resumes, it comes under the rulings on menses, and she is not regarded as mustahaadah [experiencing non-menstrual bleeding) unless the bleeding is continuous, or it only stops briefly. This is according to a fatwa of Shaykh Ibn ‘Uthaymeen (may Allah have mercy on him) in Fataawa al-Mar’ah al-Muslimah (p. 275).
Secondly:
Based on that, you have to make up the days that you fasted whilst you were bleeding, if the bleeding did not continue for the rest of the month.
Thirdly:
If the bleeding did continue without ceasing, then you are mustahaadah, and in the next month you should do the following:

You should stop praying and fasting for the duration of your former regular period, then do ghusl and pray. Istihaadah [non-menstrual bleeding] does not prevent a woman from praying and fasting, but she must protect herself by wrapping herself with cotton or heavy cloth to prevent the blood from spreading and contaminating her clothing or the place where she is praying.
If she did not previously have a regular cycle, then she should learn how to distinguish between different types of bleeding, because menstrual blood is dark and thick, has an unpleasant odour, and is usually accompanied by pain (cramps), whereas the bleeding of istihaadah is lighter in colour and is thin.

So menses is the days when the blood is dark and thick; as for the other type of bleeding, it is istihaadah.

If there is no difference in the type of blood, then she should stop praying for six or seven days, because that is the usual length of menses for women, then she should do ghusl and pray.

The woman who is mustahaadah should do wudu (ablution) for every obligatory prayer after the time for it has begun, and she may offer whatever naafil (supererogatory) prayers she wishes with that wudoo’.
For more information, please see the answer to question no. 68818.
And Allah knows best.