achievements icon indicating copy to clipboard operation
achievements copied to clipboard

hardcoded post type in URLs

Open paulgibbs opened this issue 11 years ago • 0 comments

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() `

paulgibbs avatar Feb 16 '14 20:02 paulgibbs