Hide WordPress editor based on a custom template

Description and placement:

This code will hide the WordPress editor bases on a custom template. Good if you're using your own fields. You can add this code snippet to your functions.php file in your child theme directory.

PHP