How to change model post type slugs

A default model category page link looks like the following;

and a default project category page link looks like the following;

As you can see there are some static words in the links. If you want to change these words;

1) Go to Plugins->Editor

2) Select “Ombre Features” plugin

3) Open “model_cpt.php” file


4) Find the following codes;

Single Model;

'rewrite' => array( 'slug' => 'o_models', 'with_front' => false ),

Model Categories;

'rewrite' => array( 'slug' => 'o_model_categories', 'with_front' => false )

5) Change only “o_models” and “o_model_categories” with your words (use only latin characters) like on the following examples;

Single Model;

'rewrite' => array( 'slug' => 'my-awesome-model', 'with_front' => false ),

Model Categories;

'rewrite' => array( 'slug' => 'my-awesome-model-categories', 'with_front' => false )

6) Click Update File button

7) Finally go to Settings->Permalinks and click “Save Changes” button without changing anything.