Many plugins register their own Custom Post Types (CPTs) for managing the content they’re adding to your site. However, there are times when you may want to change the default behavior of the post type. How do you change the arguments for creating the post type without manually changing the code in the plugin?
Enter the register_post_type_args filter.
For example, if you would like to change the slug on a post type that is registered in a plugin, you can do the following:
You can use this filter to change any of the available arguments for the registered post type.