How to Hide Profitori Admin Menus

function plt_hide_profitori_menus() {
	//Hide the "Objects" menu.
	remove_menu_page('edit.php?post_type=stocktend_object');
	//Hide the "Objects → Objects" menu.
	remove_submenu_page('edit.php?post_type=stocktend_object', 'edit.php?post_type=stocktend_object');
	//Hide the "Objects → Add New" menu.
	remove_submenu_page('edit.php?post_type=stocktend_object', 'post-new.php?post_type=stocktend_object');
}

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

Where do I put this code?