Remove ‘Projects’ post type in Divi

Aug 18, 2020 | Wordpress

Divi is great, but you don’t always need all the features. I often find myself not using the “Projects” post type, and prefer to hide it to keep the back end simple for my clients. It’s easy to do, just add the following code to the end of your functions.php file:

// HIDE DIVI PROJECTS FROM BACK END
add_filter( 'et_project_posttype_args', 'joy_et_project_posttype_args', 10, 1 );
function joy_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
	));
}

Did you find this helpful? Do you have any questions? We’d love to hear from you – leave a comment below!

Browse More Hints & Tips

Autoplay Videos in Divi

Autoplay Videos in Divi

Setting videos to autoplay has bugged website developers for years, and in Divi there are no default options to Autoplay your videos. Some people suggest setting your video as a background to allow autoplay, but this comes with its own issues (like setting the...

How to Choose the Best Website Address (Domain/URL)

How to Choose the Best Website Address (Domain/URL)

This article was first written 24 Sept 2011, and has been updated August 2020. What is a website address? Your website address, or domain name, is used to identify and access your website. It looks something like www.yourwebsite.com. No two website addresses...

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *