As you know, WordPress automatically displays the version that you use in the Header.php file in the template. This will not cause major problems if you keep updating your version of WordPress. But you have to know that hackers and hackers are trying hard to break this safety.
Of course, there are a lot of things that talk about protecting WordPress but what I will present today is not entirely new. Removing the WordPress version is common to everyone but what I will present today is a new way to do this ,,,
Simply paste this code into the template’s functions.php file.
remove_action ('wp_head', 'wp_generator');