Tips on Customizing AnyWhere Elementor

How to Hide Anywhere Elementor Admin Menus

function plt_hide_anywhere_elementor_menus() {
	//Hide the "AE Templates" menu.
	remove_menu_page('edit.php?post_type=ae_global_templates');
	//Hide the "AE Templates → All AE Templates" menu.
	remove_submenu_page('edit.php?post_type=ae_global_templates', 'edit.php?post_type=ae_global_templates');
	//Hide the "AE Templates → Add New" menu.
	remove_submenu_page('edit.php?post_type=ae_global_templates', 'post-new.php?post_type=ae_global_templates');
}

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

Where do I put this code?

How to Hide the "Anywhere Elementor Usage" Meta Box

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

	//Hide the "Anywhere Elementor Usage" meta box.
	remove_meta_box('ae-shortcode-box', $screen->id, 'side');
}

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