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('hmw_settings');
	//Hide "Hide My WP → Change Paths".
	remove_submenu_page('hmw_settings', 'hmw_settings');
	//Hide "Hide My WP → Mapping".
	remove_submenu_page('hmw_settings', 'hmw_settings-hmw_mapping');
	//Hide "Hide My WP → Tweaks".
	remove_submenu_page('hmw_settings', 'hmw_settings-hmw_tweaks');
	//Hide "Hide My WP → Brute Force Protection".
	remove_submenu_page('hmw_settings', 'hmw_settings-hmw_brute');
	//Hide "Hide My WP → Log Events".
	remove_submenu_page('hmw_settings', 'hmw_settings-hmw_log');
	//Hide "Hide My WP → Security Check".
	remove_submenu_page('hmw_settings', 'hmw_securitycheck');
	//Hide "Hide My WP → Install Plugins".
	remove_submenu_page('hmw_settings', 'hmw_settings-hmw_plugins');
	//Hide "Hide My WP → Backup/Restore".
	remove_submenu_page('hmw_settings', 'hmw_settings-hmw_backup');
	//Hide "Hide My WP → Advanced".
	remove_submenu_page('hmw_settings', 'hmw_settings-hmw_advanced');
}

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

Where do I put this code?

How to Hide the "Hide My WP" Dashboard Widget

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

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

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