0

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?

1
  • See "solution" answer why I choose to close vote that one.
    – kaiser
    Commented Oct 28, 2013 at 17:26

2 Answers 2

1

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

0

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?

2
  • I'm using WP E-Commerce. I want to change the rewrite rule without touching the plugin.
    – tollmanz
    Commented Jun 12, 2011 at 20:57
  • May be the solution is defining new taxonomies for the custom post type defined by WP E-Commerce.
    – Fahad
    Commented Jun 12, 2011 at 21:45

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