Trusted Business Software and Services Since 2010 Trusted Business Software and Services Since 2010
  • Resources
    • Fastest WordPress Hosting
    • WordPress Tips
    • WordPress Plugin Boilerplate
    • Zoho Partner
    • Digital Business Cards
  • Portfolio
  • Contact Us
    • Marketing Spend Calculator
  • Free Online Small
    Business Marketing Report
  • Blog
  • Join Cliff’s Email List

How to disable Divi’s Project post type

By Clifford P on April 19, 2021

Are you not using Divi’s “Projects” post type, but it’s still cluttering your admin area?

Just deactivate the Divi Projects post type to remove it.

Here’s a code snippet to do so (don’t include the leading <?php part; it just enables syntax highlighting).

<?php
add_action( 'init', 'cliff_remove_divi_project_post_type' );
if ( ! function_exists( 'cliff_remove_divi_project_post_type' ) ) {
/**
* Disable Divi's Project post type.
*
* Alternative option for post type (but not taxonomies): Use the 'et_builder_default_post_types' filter.
* wp-content/themes/Divi/includes/builder/core.php
*
* @link https://gist.github.com/cliffordp/718ec5fede29da940b5a2daaeb563817
*/
function cliff_remove_divi_project_post_type(){
unregister_post_type( 'project' );
unregister_taxonomy( 'project_category' );
unregister_taxonomy( 'project_tag' );
}
}
view raw functions.php hosted with ❤ by GitHub

If you have any projects already entered, you won’t lose that data. Commenting out the “add_action” line will re-enable the post type, and your data will still be there.

If you’re unsure how to add code snippets like this to your own site, try the free Code Snippets plugin. Otherwise, you may hire us or other WordPress experts.

Any troubles? Learn more about Divi and feel free to contact their excellent support.


The content provided here is free. When you sign up or buy through links on our site, we may earn an affiliate commission.
Divi
Posted in Advice/Tips/How-To.
PreviousReplicate Tesla’s Homepage Design with 11 Lines of CSS Code
NextGenerating Dynamic PDFs with Gravity Forms, Zapier, and PDF.co
  • For your review: our Policies and Contact Information

    Copyright © 2010–2023 · Log in

    Made with by Clifford Paulick

  • Trustworthy, Long-Term Software and Business Services Since 2010
  • Free Online Small Business Marketing Report
  • Resources
    • WordPress Tips
    • WordPress Plugin Boilerplate
    • Zoho Partner
    • Digital Business Cards
  • Contact Us
    • Marketing Spend Calculator
  • Blog
  • Join Cliff’s Email List
  • Resources
    • Fastest WordPress Hosting
    • WordPress Tips
    • WordPress Plugin Boilerplate
    • Zoho Partner
    • Digital Business Cards
  • Portfolio
  • Contact Us
    • Marketing Spend Calculator
  • Free Online Small
    Business Marketing Report
  • Blog
  • Join Cliff’s Email List