Depends on the country maybe?
Children have the right to care, security, and a good upbringing. Children shall be treated with respect for their person and individuality and shall not be subjected to corporal punishment or other abusive treatment
is the law of parenting in Sweden
In all matters concerning children, the child’s best interests must be the primary consideration. When assessing the child’s best interests, the child’s views must be taken into account. If a decision or other measure concerns care or treatment for a child, the child’s best interests must be the deciding factor
regarding what social services are bound by law to do