This part applies in any of the following:
In an action under Section 6323, nothing in this subdivision shall be construed to authorize physical or legal custody, or visitation rights, to be granted to any party to a Domestic Violence Prevention Act proceeding who has not established a parent and child relationship pursuant to paragraph (2) of subdivision (a) of Section 6323.
Ca. Fam. Code § 3021