How to Hide PublishPress Capabilities Admin Menus

function plt_hide_capability_manager_enhanced_menus() {
	//Hide "Capabilities".
	remove_menu_page('pp-capabilities-roles');
	//Hide "Capabilities → Roles".
	remove_submenu_page('pp-capabilities-roles', 'pp-capabilities-roles');
	//Hide "Capabilities → Capabilities".
	remove_submenu_page('pp-capabilities-roles', 'pp-capabilities');
	//Hide "Capabilities → Editor Features".
	remove_submenu_page('pp-capabilities-roles', 'pp-capabilities-editor-features');
	//Hide "Capabilities → Admin Features".
	remove_submenu_page('pp-capabilities-roles', 'pp-capabilities-admin-features');
	//Hide "Capabilities → Admin Menus".
	remove_submenu_page('pp-capabilities-roles', 'pp-capabilities-admin-menus');
	//Hide "Capabilities → Nav Menus".
	remove_submenu_page('pp-capabilities-roles', 'pp-capabilities-nav-menus');
	//Hide "Capabilities → Backup".
	remove_submenu_page('pp-capabilities-roles', 'pp-capabilities-backup');
	//Hide "Capabilities → Settings".
	remove_submenu_page('pp-capabilities-roles', 'pp-capabilities-settings');
	//Hide "Capabilities → Upgrade to Pro".
	remove_submenu_page('pp-capabilities-roles', 'capsman-enhanced');
}

add_action('admin_menu', 'plt_hide_capability_manager_enhanced_menus', 21);

Where do I put this code?