Tips on Customizing WP Hide Post

How to Hide the "WP Hide Post" Admin Menu

function plt_hide_wp_hide_post_menus() {
	//Hide the "Settings → WP Hide Post" menu.
	remove_submenu_page('options-general.php', 'wp-hide-post_settings_api');
}

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

Where do I put this code?

How to Hide the "Post Visibility" Meta Box

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

	//Hide the "Post Visibility" meta box.
	remove_meta_box('hidepostdivpost', $screen->id, 'advanced');
}

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