Title: Register the structure in code
Last modified: August 22, 2016

---

# Register the structure in code

 *  [Sawascwoolf](https://wordpress.org/support/users/sawascwoolf/)
 * (@sawascwoolf)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/register-the-structure-in-code/)
 * Hi,
 * I’ve tested another plugin with the same functionality as yours.
    As the matter
   of fact your plugin works – the other one does not.
 * But I think the other one has a thing which would make your plugin even better.
 * I would like to register the structure in my code, f.e.:
    `'rewrite' => array('
   slug`=> ‘team’, ‘with_front’ => FALSE, ‘custom-post-type-permalinks’ => ‘/%season%/%
   tax_teams%/%postname%/’),`
 * Your plugin should search the definitions of CPT’s for this element of the “rewrite”
   array and should work with this.
 * [https://wordpress.org/plugins/custom-post-type-permalinks/](https://wordpress.org/plugins/custom-post-type-permalinks/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Toro_Unit (Hiroshi Urabe)](https://wordpress.org/support/users/toro_unit/)
 * (@toro_unit)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/register-the-structure-in-code/#post-5318778)
 * Good idea!
    Support in future release.
 * Once, it is possible to implement it by
    `add_filter('option_'. $post_type .'
   _structure ');`

Viewing 1 replies (of 1 total)

The topic ‘Register the structure in code’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-permalinks/assets/icon-256x256.png?rev=
   3495884)
 * [Custom Post Type Permalinks](https://wordpress.org/plugins/custom-post-type-permalinks/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-permalinks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Toro_Unit (Hiroshi Urabe)](https://wordpress.org/support/users/toro_unit/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/register-the-structure-in-code/#post-5318778)
 * Status: not resolved