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

This topic is: not resolved

This topic contains 1 reply, has 1 voice, and was last updated by  Support Team 10 months ago.

  • Author
    Posts
  • #9621

    Support Team
    Keymaster
    Post count: 740

    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

    Support Team
    Keymaster
    Post count: 740

    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 must be logged in to reply to this topic.