Change Custom Post Type Name Safely.

Just replace the second line’s post type names:

 

Source: https://wordpress.stackexchange.com/questions/97026/how-do-i-safely-change-the-name-of-a-custom-post-type