Tips on Customizing YARPP – Yet Another Related Posts Plugin

How to Hide the "YARPP" Admin Menu

function plt_hide_yet_another_related_posts_plugin_menus() {
	//Hide the "Settings → YARPP" menu.
	remove_submenu_page('options-general.php', 'yarpp');

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

Where do I put this code?

How to Hide the "YARPP: Related Posts" Meta Box

function plt_hide_yet_another_related_posts_plugin_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {

	//Hide the "YARPP: Related Posts" meta box.
	remove_meta_box('yarpp_relatedposts', $screen->id, 'normal');

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