(3) The parent or legal guardian has demonstrated the capacity and ability both to complete the objectives of his or her substance abuse treatment plan as evidenced by reports from a substance abuse provider as applicable, or complete a treatment plan postdischarge from incarceration, institutionalization, or detention, or following deportation to his or her country of origin and his or her return to the United States, and to provide for the child's safety, protection, physical and emotional well-being, and special needs.
For purposes of this subdivision, the court's decision to continue the case based on a finding or substantial probability that the child will be returned to the physical custody of his or her parent or legal guardian is a compelling reason for determining that a hearing held pursuant to Section 366.26 is not in the best interests of the child.
The court shall inform the parent or legal guardian that if the child cannot be returned home by the subsequent permanency review hearing, a proceeding pursuant to Section 366.26 may be instituted. The court shall not order that a hearing pursuant to Section 366.26 be held unless there is clear and convincing evidence that reasonable services have been provided or offered to the parent or legal guardian.