 -- A Florida mother has agreed to circumcise her son after spending a week behind bars for refusing to cooperate with a court order to do so, ABC News has learned.

Heather Hironimus, 31, had been in custody since May 14 after going missing for several months with her 4-year-old son, allegedly to avoid circumcising him, according to court records.

Horonimus today signed paperwork to allow the procedure, attorney Ira Marcus, who represents the boy's father, Dennis Nebus, told ABC News.

Doing so released Horonimus from the civil pick-up order, but not a criminal charge, so it is unclear whether she will be released from jail, he said.

Hironimus has been fighting a legal battle for more than a year with Nebus, over circumcising the child -- a disagreement that began even before the child was born, court documents show.

The couple briefly agreed on circumcision in 2012, when they split up, but Hironimus changed her mind, according to ABC affiliate WPLG.

Hironimus lost a legal battle with Nebus in May 2014 when a Palm Beach County judge ruled that the boy should be circumcised, according to the Orlando Sun Sentinel.

In March 2015, the judge ordered Hironimus to bring the boy in to schedule the circumcision procedure, according to the newspaper.

But Hironimus never showed up in court -- prompting a warrant for her arrest, the newspaper reported, also noting that she avoided being arrested because she was living in a domestic violence shelter.

Hironimus filed a federal suit against both Nebus and the judge last month, claiming that her son did not have a medical need to be circumcised, had expressed that he did not want to be circumcised and was afraid of the procedure.

At the boy's age, the Hironimus’s federal complaint says, there could be negative psychological effects resulting from circumcision.

She has been in Broward County Jail since last Thursday on Palm Beach County charges, including interference with custody and writ of bodily attachment, according to the Palm Beach County Sheriff's office.

Hironimus's lawyer did not return multiple requests for comment from ABC News. ABC News was not able to immediately reach Nebus by phone.