How do I block private numbers from calling me? Android 7 on a motorola E4. This does not work for me as I simply don't have that menu.

How do I block private numbers from calling my phone?

I'm not looking for a 3rd party application. I'm thinking there must be some way to do this on an android level, maybe with some hidden code?

The phone isn't rooted, ADB isn't an option since data over USB on the phone is broken.
Motorola uses a vanilla Android experience (similar to Android One &amp; Pixel) and it ships with the Google dialer and Google contacts app. As such, you will not find as many options in your phone as we see in Xiaomi or Huawei or Samsung phones. The call blocking option is also not present in the stock Android setup.

You will have to resort to a 3rd party app from the Play Store. I wouldn't recommend any as there are many call blocking apps and you should be free to evaluate them and choose the one to your liking.