When a principal or other school official releases a minor pupil to a peace officer for the purpose of removing the minor from the school premises, the school official shall take immediate steps to notify the parent, guardian, or responsible relative of the minor regarding the release of the minor to the officer, and regarding the place to which the minor is reportedly being taken, except when a minor has been taken into custody as a victim of suspected child abuse, as defined in Section 11165.6 of the Penal Code, or pursuant to Section 305 of the Welfare and Institutions Code. In those cases, the school official shall provide the peace officer with the address and telephone number of the minor’s parent or guardian. The peace officer shall take immediate steps to notify the parent, guardian, or responsible relative of the minor that the minor is in custody and the place where he or she is being held. If the officer has a reasonable belief that the minor would be endangered by a disclosure of the place where the minor is being held, or that the disclosure would cause the custody of the minor to be disturbed, the officer may refuse to disclose the place where the minor is being held for a period not to exceed 24 hours. The officer shall, however, inform the parent, guardian, or responsible relative whether the child requires and is receiving medical or other treatment. The juvenile court shall review any decision not to disclose the place where the minor is being held at a subsequent detention hearing.