I need to disable text messaging on an iPhone. Please help.

You've eliminated everything a smart phone does.

Get him a flip phone and glue a Tile tracking chip to it. You'll save on data costs too.

Minors sending picks of their junk these days is a way serious deal. The law would love to get involved.
EDIT:

Didn't realize how old this thread was! (Two years old!!)
That is ok. I replied to replies that were much older than that.
I know this is an old thread, but I discovered a way to solve the problem. I created the attached tutorial to restrict an iPhone to calls only. Enjoy!
i thought there's a setting for it inside messages

Original thread: https://forums.imore.com/threads/i-need-to-disable-text-messaging-on-an-iphone-please-help.283836/