Cal. Welf. & Inst. Code § 726.5
(a) At any time when (1) the minor is a ward of the juvenile court under Section 725, or the court terminates wardship while the minor remains under the age of 18 years, and (2) proceedings for dissolution of marriage, for nullity of marriage, or for legal separation of the minor’s parents, proceedings to determine custody of the child, or to establish paternity of the minor under the Uniform Parentage Act, Part 3 (commencing with Section 7600) of Division 12 of the Family Code are pending in the superior court of any county, or an order has been entered with regard to the custody of the minor, the juvenile court may issue a protective order as provided in Section 213.5 or as defined in Section 6218 of the Family Code and may issue an order determining parentage, custody of, or visitation with, the minor.
A custody or visitation order issued by the juvenile court pursuant to this subdivision shall be made in accordance with the procedures and criteria of Part 2 (commencing with Section 3020) of Division 8 of the Family Code. An order determining parentage issued by the juvenile court pursuant to this subdivision shall be made in accordance with the procedures and presumptions of the Uniform Parentage Act, Part 3 (commencing with Section 7600) of Division 12 of the Family Code.