Unregister WordPress Post Types Created by Metal PotatoTags: post type, unregister post typePiece of code that I use regularly to unregister a WordPress post type. Just add/edit/remove the post type from lines 3, 4 and 5 and paste in your functions.php file.