Tips on Customizing Elementor Website Builder – More Than Just a Page Builder

How to Hide Elementor Admin Menus

function plt_hide_elementor_menus() {
	//Hide "Elementor".
	remove_menu_page('elementor');
	//Hide "Elementor → Home".
	remove_submenu_page('elementor', 'elementor');
	//Hide "Elementor → Settings".
	remove_submenu_page('elementor', 'elementor-settings');
	//Hide "Elementor → Role Manager".
	remove_submenu_page('elementor', 'elementor-role-manager');
	//Hide "Elementor → Element Manager".
	remove_submenu_page('elementor', 'elementor-element-manager');
	//Hide "Elementor → Tools".
	remove_submenu_page('elementor', 'elementor-tools');
	//Hide "Elementor → System Info".
	remove_submenu_page('elementor', 'elementor-system-info');
	//Hide "Elementor → Get Help".
	remove_submenu_page('elementor', 'go_knowledge_base_site');
	//Hide "Elementor → Submissions".
	remove_submenu_page('elementor', 'e-form-submissions');
	//Hide "Elementor → Custom Fonts".
	remove_submenu_page('elementor', 'elementor_custom_fonts');
	//Hide "Elementor → Custom Icons".
	remove_submenu_page('elementor', 'elementor_custom_icons');
	//Hide "Elementor → Custom Code".
	remove_submenu_page('elementor', 'elementor_custom_code');
	//Hide "Elementor → Add-ons".
	remove_submenu_page('elementor', 'elementor-apps');
	//Hide "Elementor → Upgrade".
	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', 'http://127.0.0.1/wp-admin/admin.php?page=elementor-app&ver=3.26.2#site-editor/promotion');
	//Hide "Templates → Floating Elements".
	remove_submenu_page('edit.php?post_type=elementor_library', 'e-floating-buttons');
	//Hide "Templates → Kit Library".
	remove_submenu_page('edit.php?post_type=elementor_library', 'http://127.0.0.1/wp-admin/admin.php?page=elementor-app&ver=3.26.2#/kit-library');
	//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://127.0.0.1/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', 201);

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);