Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm am attempting to change the rewrite argument after it has been defined and passed as an argument for 'register_post_type' in a plugin. My issue is that I am utilizing a plugin that defines a custom post type. I can manually edit the rewrite argument in the plugin; however, doing so will mean that I have to do this every time the plugin updates. I was wondering if there is a way that I can change this with some code in another plugin or functions.php file.

I was thinking there might be a function that would allow me to alter these arguments or a way in which I could unregister and reregister the custom post type.

Any ideas?

share|improve this question

2 Answers

up vote 1 down vote accepted

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

share|improve this answer

Which plugin are you using? If you are using custom post UI this is possible. I can point to the right direction once I know which plugin are you using?

share|improve this answer
I'm using WP E-Commerce. I want to change the rewrite rule without touching the plugin. – tollmanz Jun 12 '11 at 20:57
May be the solution is defining new taxonomies for the custom post type defined by WP E-Commerce. – Fahd Murtaza Jun 12 '11 at 21:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.