CA Penal Code § 279.6 (2021)
2021 California Code|Penal Code - PEN|PART 1 - OF CRIMES AND PUNISHMENTS|TITLE 9 - OF CRIMES AGAINST THE PERSON INVOLVING SEXUAL ASSAULT, AND CRIMES AGAINST PUBLIC DECENCY AND GOOD MORALS|CHAPTER 4 - Child Abduction|Section 279.6.

279.6.  (a) A law enforcement officer may take a child into protective custody under any of the following circumstances:(1) It reasonably appears to the officer that a person is likely to conceal the child, flee the jurisdiction with the child, or, by flight or concealment, evade the authority of the court.(2) There is no lawful custodian available to take custody of the child.(3) There are conflicting custody orders or conflicting claims to custody and the parties cannot agree which party should take custody of the child.(4) The child is an abducted child.(b) When a law enforcement officer takes a child into protective custody pursuant to this section, the officer shall do one of the following:(1) Release the child to the lawful custodian of the child, unless it reasonably appears that the release would cause the child to be endangered, abducted, or removed from the jurisdiction.(2) Obtain an emergency protective order pursuant to Part 3 (commencing with Section 6240) of Division 10 of the Family Code ordering placement of the child with an interim custodian who agrees in writing to accept interim custody.(3) Release the child to the social services agency responsible for arranging shelter or foster care.(4) Return the child as ordered by a court of competent jurisdiction.(c) Upon the arrest of a person for a violation of Section 278 or 278.5, a law enforcement officer shall take possession of an abducted child who is found in the company of, or under the control of, the arrested person and deliver the child as directed in subdivision (b).(d) Notwithstanding any other law, when a person is arrested for an alleged violation of Section 278 or 278.5, the court shall, at the time of the arraignment or thereafter, order that the child shall be returned to the lawful custodian by or on a specific date, or that the person show cause on that date why the child has not been returned as ordered. If conflicting custodial orders exist within this state, or between this state and a foreign state, the court shall set a hearing within five court days to determine which court has jurisdiction under the laws of this state and determine which state has subject matter jurisdiction to issue a custodial order under the laws of this state, the Uniform Child Custody Jurisdiction Act (Part 3 (commencing with Section 3400) of Division 8 of the Family Code), or federal law, if applicable. At the conclusion of the hearing, or if the child has not been returned as ordered by the court at the time of arraignment, the court shall enter an order as to which custody order is valid and is to be enforced. If the child has not been returned at the conclusion of the hearing, the court shall set a date within a reasonable time by which the child shall be returned to the lawful custodian, and order the defendant to comply by this date, or to show cause on that date why he or she has not returned the child as directed. The court shall only enforce its order, or any subsequent orders for the return of the child, under subdivision (a) of Section 1219 of the Code of Civil Procedure, to ensure that the child is promptly placed with the lawful custodian. An order adverse to either the prosecution or defense is reviewable by a writ of mandate or prohibition addressed to the appropriate court.(Added by Stats. 1996, Ch. 988, Sec. 9. Effective January 1, 1997.)