Tips on Customizing Schema

How to Hide Schema Admin Menus

function plt_hide_schema_menus() {
	//Hide "Schema".
	remove_menu_page('schema');
	//Hide "Schema → Settings".
	remove_submenu_page('schema', 'schema');
	//Hide "Schema → Types".
	remove_submenu_page('schema', 'edit.php?post_type=schema');
	//Hide "Schema → Extensions".
	remove_submenu_page('schema', 'schema-extensions');
	//Hide "Schema → Premium".
	remove_submenu_page('schema', 'https://schema.press/downloads/schema-premium/');
	//Hide "Schema → About".
	remove_submenu_page('schema', 'admin.php?page=schema-wp-what-is-new');
}

add_action('admin_menu', 'plt_hide_schema_menus', 51);

Where do I put this code?

How to Hide Schema Meta Boxes

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

	//Hide the "Schema" meta box.
	remove_meta_box('submitdiv', $screen->id, 'side');
	//Hide the "Post Types" meta box.
	remove_meta_box('schema_cpt', $screen->id, 'side');
	//Hide the "Go Premium" meta box.
	remove_meta_box('schema_premium_plugin', $screen->id, 'side');
	//Hide the "Schema Settings" meta box.
	remove_meta_box('schema', $screen->id, 'normal');
	//Hide the "Article" meta box.
	remove_meta_box('schema_article', $screen->id, 'normal');
	//Hide the "Post Meta" meta box.
	remove_meta_box('schema_post_meta_box', $screen->id, 'normal');
	//Hide the "Schema Exclude" meta box.
	remove_meta_box('schema_exclude', $screen->id, 'normal');
	//Hide the "sameAs" meta box.
	remove_meta_box('schema_sameAs', $screen->id, 'normal');
}

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