LOS ANGELES — A Los Angeles Superior Court judge on Friday left open the possibility for former USC kicker Matt Boermeester to return to the university.

Boermeester, who was expelled in July following a Title IX investigation into alleged domestic violence, filed a petition last month seeking reinstatement to the school.

Judge Amy Hogue granted Boermeester’s request to stay the ruling, but on conditions that he not re-enroll in classes or visit campus.

“The court should be cautious when undermining a university’s disciplinary process,” Hogue said during a 45-minute hearing.

A trial date was set for Jan. 3, 2018, when Hogue is expected to rule on Boermeester’s request to reverse his expulsion from the university. It is five days before the start of USC’s spring semester. Friday was the last day for students to add classes for the fall semester, which began Aug. 21.

Friday’s decision also ended any last-minute attempt for Boermeester to rejoin the football team for this season.

“Matt Boermeester is disappointed he can’t return to USC right away and is considering his options,” Mark Hathaway, an attorney representing Boermeester, said outside the courtroom after the hearing.

Julie Young and Karen Pazzani, attorneys representing USC, declined to comment.

Boermeester, 23, attended the hearing, sitting alongside girlfriend Zoe Katz.

USC expelled Boermeester for allegedly assaulting Katz, 22, outside her residence in January, according to court documents obtained by the Southern California News Group. Its investigation concluded Boermeester had violated the university’s policy for intimate partner violence.

Katz, a USC women’s tennis player, has denied she was assaulted by Boermeester.

In court documents, USC said Katz recounted her story, at first confirming an assault and detailing a pattern of abuse when contacted by Title IX investigators.

Katz, in a declaration, said her comments were “misrepresented, misquoted and taken out of context.”

During the hearing Friday, attorneys for both sides argued against the decision to stay Boermeester’s expulsion.

Hathaway contended Boermeester should be allowed to take classes while his petition for reinstatement is considered.

“He has a fundamental right to his education, and that right has been abridged by the university,” Hathaway said.

Young warned of a chilling effect on students reporting potential instances of domestic abuse.

“Will they report when a classmate is submitted to violence?” she asked.

Hogue called it a “fair compromise.”

Boermeester’s future with the football team would be left to USC in case he is reinstated to the school. He would also likely need to petition the NCAA for an extra season of eligibility. College athletes are given five years to play four seasons, and Boermeester, who would have been a redshirt senior this fall, began as a freshman in junior college in 2013.

Before he was removed from the team, Boermeester made the winning 46-yard field goal for USC in its dramatic Rose Bowl victory over Penn State in January.

Chase McGrath, a freshman walk-on from Mater Dei, has taken over field-goal kicking duties for the Trojans. He did not attempt a field goal in USC’s 49-31 season-opening win over Western Michigan, but made all seven extra-point attempts.