# Add 'rewrite' Parameter to Register Post Type WP Action

**URL:** <https://forum.pinegrow.com/t/add-rewrite-parameter-to-register-post-type-wp-action/7332>\
**Category:** Feature Request\
**Tags:** feature-request, wordpress\
**Created:** [December 6, 2022, 5:26pm UTC](https://forum.pinegrow.com/t/add-rewrite-parameter-to-register-post-type-wp-action/7332 "2022-12-06T17:26:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonroc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/jonroc/32/2805_2.png) [@jonroc](https://forum.pinegrow.com/u/jonroc)\
**Post date:** [December 6, 2022, 5:26pm UTC](https://forum.pinegrow.com/t/add-rewrite-parameter-to-register-post-type-wp-action/7332/1 "2022-12-06T17:26:08Z")

</div>

It’s my understanding that the post\_type key should use an underscore, but any two word PT I use would require the dash for the slug. It would be great if we could assign/update the rewrite parameters with the PG WP action. -Thanks

---

<div class="post-metadata">

**Author:** ![Guido](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/guido/32/4958_2.png) [@Guido](https://forum.pinegrow.com/u/Guido)\
**Post date:** [December 6, 2022, 7:31pm UTC](https://forum.pinegrow.com/t/add-rewrite-parameter-to-register-post-type-wp-action/7332/2 "2022-12-06T19:31:53Z")

</div>

Yes i agree. Or let us use - in the post type name. 😉

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [August 8, 2023, 5:14pm UTC](https://forum.pinegrow.com/t/add-rewrite-parameter-to-register-post-type-wp-action/7332/3 "2023-08-08T17:14:30Z")

</div>

Using ‘-’ in the post type name will screw you down the road when you need to make a wp\_query. I’ve made this mistake more often than I care to admit!

I would also love to see this parameter added; it’s the only thing keeping me from being able to use the Register Post Type action in production.
