Tips on Customizing Hide My WP Ghost – Security Plugin

How to Hide Hide My WP Ghost Lite Admin Menus

function plt_hide_hide_my_wp_menus() {
	//Hide "Hide My WP".
	remove_menu_page('hmwp_settings');
	//Hide "Hide My WP → Overview 9".
	remove_submenu_page('hmwp_settings', 'hmwp_settings');
	//Hide "Hide My WP → Change Paths".
	remove_submenu_page('hmwp_settings', 'hmwp_permalinks');
	//Hide "Hide My WP → Tweaks".
	remove_submenu_page('hmwp_settings', 'hmwp_tweaks');
	//Hide "Hide My WP → Mapping".
	remove_submenu_page('hmwp_settings', 'hmwp_mapping');
	//Hide "Hide My WP → Brute Force".
	remove_submenu_page('hmwp_settings', 'hmwp_brute');
	//Hide "Hide My WP → Events Log".
	remove_submenu_page('hmwp_settings', 'hmwp_log');
	//Hide "Hide My WP → Security Check".
	remove_submenu_page('hmwp_settings', 'hmwp_securitycheck');
	//Hide "Hide My WP → Backup/Restore".
	remove_submenu_page('hmwp_settings', 'hmwp_backup');
	//Hide "Hide My WP → Advanced".
	remove_submenu_page('hmwp_settings', 'hmwp_advanced');
	//Hide "Hide My WP → Plugins".
	remove_submenu_page('hmwp_settings', 'hmwp_plugins');
}

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

Where do I put this code?

How to Hide the "Hide My WP Ghost" Dashboard Widget

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

	//Remove the "Hide My WP Ghost" widget.
	remove_meta_box('hmwp_dashboard_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_hide_my_wp_dashboard_widgets', 20);