Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dividezigns/22a9c6bcc5b3c0ac3fb02b54625f635a to your computer and use it in GitHub Desktop.
Save dividezigns/22a9c6bcc5b3c0ac3fb02b54625f635a to your computer and use it in GitHub Desktop.
This code will remove Divi's Projects custom post type. Place this code in functions.php file in your child theme directory.
<?php
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
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment