Snippets: Remove “Edit with Visual Composer” from WordPress Admin Bar

This code will remove the Edit with Visual Composer link from the WordPress admin bar when logged in to make more room for other links. It's a very long text so it can take up a lot of room in the admin bar and you may want to remove it if there are a lot of of other links being added by other plugins or your theme.

add_action( 'vc_after_init', function() {
    remove_action( 'admin_bar_menu', array( vc_frontend_editor(), 'adminBarEditLink' ), 1000 );
} );
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)