Tips on Customizing Elementor Page Builder

How to Hide Elementor Admin Menus

function plt_hide_elementor_menus() {
	//Hide "Elementor".
	remove_menu_page('elementor');
	//Hide "Elementor → Settings".
	remove_submenu_page('elementor', 'elementor');
	//Hide "Elementor → Role Manager".
	remove_submenu_page('elementor', 'elementor-role-manager');
	//Hide "Elementor → Tools".
	remove_submenu_page('elementor', 'elementor-tools');
	//Hide "Elementor → System Info".
	remove_submenu_page('elementor', 'elementor-system-info');
	//Hide "Elementor → Getting Started".
	remove_submenu_page('elementor', 'elementor-getting-started');
	//Hide "Elementor → Get Help".
	remove_submenu_page('elementor', 'go_knowledge_base_site');
	//Hide "Elementor → Custom Fonts".
	remove_submenu_page('elementor', 'elementor_custom_fonts');
	//Hide "Elementor → Go Pro".
	remove_submenu_page('elementor', 'go_elementor_pro');

	//Hide "Templates".
	remove_menu_page('edit.php?post_type=elementor_library');
	//Hide "Templates → Saved Templates".
	remove_submenu_page('edit.php?post_type=elementor_library', 'edit.php?post_type=elementor_library&tabs_group=library');
	//Hide "Templates → Theme Builder".
	remove_submenu_page('edit.php?post_type=elementor_library', 'theme_templates');
	//Hide "Templates → Popups".
	remove_submenu_page('edit.php?post_type=elementor_library', 'popup_templates');
	//Hide "Templates → Add New".
	remove_submenu_page('edit.php?post_type=elementor_library', 'http://192.168.8.128/wp-admin/edit.php?post_type=elementor_library#add_new');
	//Hide "Templates → Categories".
	remove_submenu_page('edit.php?post_type=elementor_library', 'edit-tags.php?taxonomy=elementor_library_category&post_type=elementor_library');
}

add_action('admin_menu', 'plt_hide_elementor_menus', 801);

Where do I put this code?

How to Hide the "Post Attributes" Meta Box

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

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

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

How to Hide the "Elementor Overview" Dashboard Widget

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

	//Remove the "Elementor Overview" widget.
	remove_meta_box('e-dashboard-overview', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_elementor_dashboard_widgets', 20);