1. Home
  2. Docs
  3. Developers “How To’s”
  4. Remove “Edit with WPBakery Page Builder” from WordPress Admin Bar

Remove “Edit with WPBakery Page Builder” from WordPress Admin Bar

You can remove “Edit with WPBakery Page Builder” option from your WordPress admin bar by adding following code to your WordPress theme’s functions.php file.

<?php
function vc_remove_wp_admin_bar_button() {
    remove_action( 'admin_bar_menu', array( vc_frontend_editor(), 'adminBarEditLink' ), 1000 );
}
add_action( 'vc_after_init', 'vc_remove_wp_admin_bar_button' );

You can remove “Edit with WPBakery Page Builder” link from all WordPress pages and in admin by adding following code to your WordPress theme’s functions.php file.

<?php
function vc_remove_frontend_links() {
    vc_disable_frontend(); // this will disable frontend editor
}
add_action( 'vc_after_init', 'vc_remove_frontend_links' );