Cal. Fam. Code § 3190
(a) The court may require parents or any other party involved in a custody or visitation dispute, and the minor child, to participate in outpatient counseling with a licensed mental health professional, or through other community programs and services that provide appropriate counseling, including, but not limited to, mental health or substance abuse services, for not more than one year, provided that the program selected has counseling available for the designated period of time, if the court finds both of the following:
(d) The court, in its finding, shall set forth reasons why it has found both of the following: