I am creating new plugin and i want to add custom post type functionality in it.
I Want to add register post type as a sub menu page of the plugin.
I am using this code from here : http://codex.wordpress.org/Function_Reference/register_post_type
But it is added as a separate menu in admin and not as a sub menu in my plugin.
Is there any way to make it as a sub menu of my plugin and not of wordpress menu.