Tips on Customizing Boostify Header Footer Builder for Elementor

How to Hide Boostify Header Footer Builder Admin Menus

function plt_hide_boostify_header_footer_builder_menus() {
	//Hide the "Boostify Header Footer Builder" menu.
	remove_menu_page('edit.php?post_type=btf_builder');
	//Hide the "Boostify Header Footer Builder → All Header, Footer" menu.
	remove_submenu_page('edit.php?post_type=btf_builder', 'edit.php?post_type=btf_builder');
	//Hide the "Boostify Header Footer Builder → Add New Header, Footer" menu.
	remove_submenu_page('edit.php?post_type=btf_builder', 'post-new.php?post_type=btf_builder');
}

add_action('admin_menu', 'plt_hide_boostify_header_footer_builder_menus', 15);

Where do I put this code?

How to Hide the "Template Settings" Meta Box

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

	//Hide the "Template Settings" meta box.
	remove_meta_box('ht_hf_setting', $screen->id, 'side');
}

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