Disable "Post via email"

To disable the WordPress feature ‘Post via email’, use the snippet below:

add_filter('enable_post_by_email_configuration', '__return_false');