This snippets removes the “Projects” section of the Divi WordPress theme from Elegant Themes.
I was recently doing a bit of customization for a Divi child theme and, because the client had no use for the “project” custom post type (for portfolio items), I wanted to remove this post type to clean up the backend. Here’s the code to remove the Projects custom post type in Divi.
(This code has been updated because the old snippet apparently stopped working, and there’s a better way to do this. Since the projects post type is so deeply embedded within the core functionality of Divi, it’s a better idea to hide the post type, rather than remove it altogether. Thanks to George for providing another solution.)