Both. But it's primarily to make sure nobody is sneaking in an abortion, I think.
Obviously, since many young women take years to become regular in their cycles (if they ever can without birth control pills making them regular) that's going to work out real well.
I think I read somewhere that this policy for walked back, but I honestly can't remember idnitnwas in Florida or another fascist state.