Tips on Customizing Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates

How to Hide the "Essential Blocks" Admin Menu

function plt_hide_essential_blocks_menus() {
	//Hide the "Essential Blocks" menu.

add_action('admin_menu', 'plt_hide_essential_blocks_menus', 11);

Where do I put this code?

How to Hide the "Post Attributes" Meta Box

function plt_hide_essential_blocks_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {

	//Hide the "Post Attributes" meta box.
	remove_meta_box('pageparentdiv', $screen->id, 'side');

add_action('add_meta_boxes', 'plt_hide_essential_blocks_metaboxes', 20);