I have a “master” plugin that I use to modify various aspects of the user interface and public facing site. This snippet will effectively disable the meta generator that displays your WordPress version. This is generally accepted as good practice in case someone is scoping out your website for malicious purposes.
remove_action('wp_head', 'wp_generator');
Source – https://wordpress.org/support/topic/removing-meta-generator-wordpress