Change the menu strings and other text for an existing CPT to customize its Dashboard appearance.
In the Genesis WordPress Facebook group (a closed group) someone asked about changing the Dashboard display name of a CPT:
Genesis Portfolio Pro plugin by Studiopress, is there a way to alter to default archive title/Post-Type from “Portfolio” to something else like “case studies” or is it easier to just rewrite the CPT?
Changing some strings
I copied the code from that project and changed the post_type to ‘portfolio‘ to match those set in Genesis Portfolio Pro plugin. I changed a few of the strings per the Facebook post.
Update: A year later another group member wanted to change the slug from ‘portfolio‘ to ‘classes‘. Using the ‘registered_post_type‘ action did not work because the CPT’s rewrite rules were initialised before that action. I looked at the register_post_type() function and eventually found that there is a ‘register_post_type_args‘ filter that is called before the rewrite rules code (it is called in WP_Post_Type::set_props() in wp-includes/class-wp-post-type.php).
I didn’t change the ‘Portfolio Types‘ taxonomy but I expect that it is not too difficult to do so as ‘register_taxonomy‘ has a similar action (called ‘registered_taxonomy‘) with similar parameters.
Determine the string to change
If you are unsure what string to set you can add an error_log() call to the ‘register_post_type_args‘ filter and see all those that are set.
You will get something like: