The bill followed the Scottish Parliament's passage in 2019 of the Children (Equal Protection from Assault) (Scotland) Act, and means people in Wales (as in Scotland) will be banned from smacking their children.