FavoriteLoadingAdd to favorites

By Adding the below snippet to your WordPress functions.php file you can remove the Divi Project Post Type which is added by Default.


add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 );
function mytheme_et_project_posttype_args( $args ) {
	return array_merge( $args, [
        'public'              => false,
		'show_ui'             => false,
		'show_in_nav_menus'   => false,
		'publicly_queryable'  => false,
		'exclude_from_search' => false
		]
	);
}

Pin It on Pinterest

Share This