WHY??
I will provide your child a snack. Hey, sometimes I even bake some biscuits or something. I would never dream of sending food with my DC if they have been invited somewhere.
I have now adopted the strategy of sending food back unopened and uneaten with an "it's ok I made cakes" and hope I don't offend but the message might get through.