Tips on Customizing NutsForPress Restricted Contents

How to Hide NutsForPress Restricted Contents Admin Menus

function plt_hide_nutsforpress_restricted_contents_menus() {
	//Hide the "NutsForPress" menu.
	remove_menu_page('nfproot-settings');
	//Hide the "NutsForPress → NutsForPress" menu.
	remove_submenu_page('nfproot-settings', 'nfproot-settings');
	//Hide the "NutsForPress → Restricted Contents" menu.
	remove_submenu_page('nfproot-settings', 'nfprct-settings');
}

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

Where do I put this code?

How to Hide the "Restricted Content" Meta Box

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

	//Hide the "Restricted Content" meta box.
	remove_meta_box('nfprct-restricted', $screen->id, 'side');
}

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