Premium WordPress Themes, Templates & Plugins Support WordPress Plugin Support WPBakery Page Builder How to remove “Edit with WPBakery Page Builder” from WordPress Admin Bar

Viewing 1 reply thread
  • Author
    Posts
    • #9621
      ThemeofWP
      Keymaster

      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.

      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’ );

    • #9623
      ThemeofWP
      Keymaster

      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' );
Viewing 1 reply thread
  • You must be logged in to reply to this topic.