A minor, under 12 years of age, accompanied by a duly appointed and acting guardian ad litem, shall be permitted to appear in court without counsel for the limited purpose of requesting or opposing a request for a temporary restraining order or injunction, or both, under this division as provided in Section 374 of the Code of Civil Procedure.