Changing ‘rewrite’ argument after custom post type is registered [duplicate]

I had a very similar question and found the answer. Take a look, it might be helpful for You aswell: Change custom post type to hierarchical after being registered

Leave a Comment