How to Remove the Projects Post Type in Divi

Divi annoyingly adds a post type to their theme called "Projects".

Add this PHP code snippet to your child theme to remove that from the Wordpress admin.

####################
# Remove the Projects Post Type in Divi
# See: https://www.jucra.com/whmcs/knowledgebase/125/
####################
add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 );
function mytheme_et_project_posttype_args( $args ) {
	return array_merge( $args, array(
		'public'              => false,
		'exclude_from_search' => false,
		'publicly_queryable'  => false,
		'show_in_nav_menus'   => false,
		'show_ui'             => false
	));
}
  • divi, web design
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Increase Sub Menu Item Width in DIVI

DIVI is great but a frustrating thing is the sub-menus are a fixed width so the text does not fit...