# Hide Divi's Projects Post Type

> Hides the Projects post type that Divi adds, from the admin menu, menus, search and the front end, for sites that never use it.

- Type: PHP
- Runs: Run everywhere
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: divi, projects, cleanup, post-types
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/divi-hide-projects/

## Code

```php
add_filter( 'et_project_posttype_args', function ( $args ) {
    $args['public']              = false;
    $args['publicly_queryable']  = false;
    $args['show_ui']             = false;
    $args['show_in_menu']        = false;
    $args['show_in_nav_menus']   = false;
    $args['show_in_admin_bar']   = false;
    $args['exclude_from_search'] = true;
    $args['has_archive']         = false;

    return $args;
} );
```

## Notes

Existing projects are kept in the database and come back if you remove this snippet.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide Divi's Projects Post Type" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
