Title: hard coded post type name
Last modified: August 21, 2016

---

# hard coded post type name

 *  Resolved [Peter J. Herrel](https://wordpress.org/support/users/donutz/)
 * (@donutz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-post-type-name/)
 * Hi Paul, thanks for the great plugin! I noticed that the post type name is hardcoded
   in the `$parent_slug` param of `add_submenu_page()` (cf. the “Users” and “Supported
   Plugins” submenus):
 * `'edit.php?post_type=achievement'`
 * Should be:
 * `'edit.php?post_type=' . dpa_get_achievement_post_type()`
 * [https://wordpress.org/plugins/achievements/](https://wordpress.org/plugins/achievements/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Paul Wong-Gibbs](https://wordpress.org/support/users/djpaul/)
 * (@djpaul)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-post-type-name/#post-4617403)
 * Good spot, thanks Peter. I made a bug report at [https://github.com/paulgibbs/achievements/issues/132](https://github.com/paulgibbs/achievements/issues/132)
   so I can get this fixed for the next version. Thanks again.

Viewing 1 replies (of 1 total)

The topic ‘hard coded post type name’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/achievements.svg)
 * [Achievements for WordPress](https://wordpress.org/plugins/achievements/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/achievements/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/achievements/)
 * [Active Topics](https://wordpress.org/support/plugin/achievements/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/achievements/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/achievements/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Paul Wong-Gibbs](https://wordpress.org/support/users/djpaul/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-post-type-name/#post-4617403)
 * Status: resolved