Tips on Customizing Bold Page Builder

How to Hide the "Bold Builder" Admin Menu

function plt_hide_bold_page_builder_menus() {
	//Hide the "Settings → Bold Builder" menu.
	remove_submenu_page('options-general.php', 'bt_bb_settings');
}

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

Where do I put this code?

How to Hide the "Bold Builder" Meta Box

function plt_hide_bold_page_builder_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Bold Builder" meta box.
	remove_meta_box('bt_bb_sectionid', $screen->id, 'normal');
}

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