WordPress: Как удалить meta generator Visual Composer?

Чтобы удалить тэг <meta name="generator" content="Powered by Visual Composer - drag and drop page builder for WordPress." /> или <meta name="generator" content="Powered by WPBakery Page Builder - drag and drop page builder for WordPress." /> необходимо в файл wp-content/themes/THEME/functions.php добавить

if (function_exists('visual_composer')) {

    function removeVCGenerator()
    {
        remove_action('wp_head', [visual_composer(), 'addMetaData']);
    }

    add_action('init', 'removeVCGenerator', 100);
}