Tips on Customizing WP SEO Structured Data Schema

How to Hide WP SEO Structured Data Schema Admin Menus

function plt_hide_wp_seo_structured_data_schema_menus() {
	//Hide the "WP SEO Schema" menu.
	remove_menu_page('wp-seo-schema');
	//Hide the "WP SEO Schema → WP SEO Schema" menu.
	remove_submenu_page('wp-seo-schema', 'wp-seo-schema');
	//Hide the "WP SEO Schema → Settings" menu.
	remove_submenu_page('wp-seo-schema', 'wp-seo-schema-settings');
}

add_action('admin_menu', 'plt_hide_wp_seo_structured_data_schema_menus', 11);

Where do I put this code?

How to Hide the "WP SEO Structured Data Schema by WPSEMPlugins.com" Meta Box

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

	//Hide the "WP SEO Structured Data Schema by WPSEMPlugins.com" meta box.
	remove_meta_box('kcseo-wordpres-seo-structured-data-schema-meta-box', $screen->id, 'normal');
}

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