Prevent a crop from being bonemeal-ed

Is it possible with a datapack to make a specific plant, in this case wheat, from being able to be bonemealed? I'm struggling to find documentation on what makes it work.
Continue to help post