Hide "Edit with Bricks"

There is one detail that works for my workflow. I would like to hide the “Edit with Bricks” option to access the template.

For example. I determine that I only want Bricks to edit “Pages”.
But when accessing a Post, I see “Edit with Bricks” changing the template used to Post. This has confused other people who manage the content of the site.
Do you think it is interesting to have an option to remove it in this case?

Hi Andre,

you may use this as you need.

add_action('admin_bar_menu', 'hide_bricks_edit', 999);
function hide_bricks_edit($wp_admin_bar) {
    $wp_admin_bar->remove_node('editor_mode'); // Hide - Render with Bricks
    $wp_admin_bar->remove_node('edit_with_bricks'); // Hide - Edit with Bricks
}
8 Likes

Thanks, it sure helps!