By default, WordPress places the current running version as a meta generator in the head of the site. Additionally, WPBakery Page Builder (which comes bundled with Salient) does the same for its own current version. This can have an impact on security, so we remove this by default. Place the following snippet inside the functions.php file of the child theme:
remove_action('wp_head', 'wp_generator');
add_action('wp_head', 'wpbakery_head', 1);
function wpbakery_head() {
if ( class_exists( 'Vc_Manager' ) ) {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
}
Last modified | Friday, January 29, 2021, 8:41:53 AM UTC |
Last author | Glenn de Haan |
Commit ID | 8c81eec |