# Rename Divi "Projects" to "Portfolio"

> Renames Divi's Projects post type to Portfolio everywhere in wp-admin and changes its address from /project/ to /portfolio/.

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

## Code

```php
// Singular and plural names, and the URL slug.
$wpide_divi_project_singular = 'Portfolio Item';
$wpide_divi_project_plural   = 'Portfolio';
$wpide_divi_project_slug     = 'portfolio';

add_filter( 'et_project_posttype_args', function ( $args ) use ( $wpide_divi_project_singular, $wpide_divi_project_plural, $wpide_divi_project_slug ) {
    $args['labels'] = array_merge( isset( $args['labels'] ) ? (array) $args['labels'] : array(), array(
        'name'          => $wpide_divi_project_plural,
        'singular_name' => $wpide_divi_project_singular,
        'menu_name'     => $wpide_divi_project_plural,
        'all_items'     => 'All ' . $wpide_divi_project_plural,
        'add_new_item'  => 'Add New ' . $wpide_divi_project_singular,
        'edit_item'     => 'Edit ' . $wpide_divi_project_singular,
        'view_item'     => 'View ' . $wpide_divi_project_singular,
        'search_items'  => 'Search ' . $wpide_divi_project_plural,
    ) );
    $args['rewrite'] = array( 'slug' => $wpide_divi_project_slug, 'with_front' => false );

    return $args;
} );
```

## Notes

Visit Settings > Permalinks and click Save once after enabling this so the new addresses work.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Rename Divi "Projects" to "Portfolio"" 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/
