Avada Forums Community Forum Remove “Edit Live” option from Menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • insideoutweb
    Participant
    Post count: 2

    Anyone know what the filter to remove the Edit Live option from the WordPress black bar menu is? Using Gutenberg and don’t want my clients to edit live and break their site.

    insideoutweb
    Participant
    Post count: 2

    Remove it with:

    add_action( ‘after_setup_theme’, ‘remove_extra_admin_bar_items’, 999 );
    function remove_extra_admin_bar_items() {
    remove_action( ‘admin_bar_menu’, array( Fusion_App::get_instance(), ‘builder_trigger’ ), 999 );
    }

    aditerum
    Participant
    Post count: 1

    This no longer works – are there alternatives?

    marklchaves
    Participant
    Post count: 873

    Hmmmm

    
    function zzz_remove_toolbar_items($wp_adminbar) {
      	$wp_adminbar->remove_node('fb-edit');
    	//$wp_adminbar->remove_node('wp-logo');
    }
    add_action('admin_bar_menu', 'zzz_remove_toolbar_items', PHP_INT_MAX);
    
    
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.