I know how to disable the plugin/theme editor in a specific WordPress site.
My Question: Is it possible to disable the the editor from a theme's functions.php
file?
The idea is to have this turned off by default whenever my theme is active; however, once a few warnings are accepted, the editor can be re-enabled via the theme options page. (something that WordPress should be doing but, for whatever reason, does not.)
Beyond that, the particular theme in question is pretty advanced. Meaning that even someone who knows what they are doing could mess it up without realizing it.