Modify Url for Edit Post Screen in Custom Post Type

Ive looked at the questions that may have already answered what im needing and came up short…Im modifying a plugin and the custom post-type name shows in the url when adding a new post.

But..when I edit a post, the url shows up like this:
/wp-admin/post.php?post=2059&action=edit

With 2059 being the post ID. What I would like is when editing the post for the url to contain the custom post-type name also.

So instead of above, it would show something like:
/wp-admin/admin.php?page=custom_pt_name&post=2059&action=edit
or
/wp-admin/admin.php?post_type=custom_pt_name&post=2059&action=edit

I appreciate the help

Read more here:: Modify Url for Edit Post Screen in Custom Post Type

Leave a Reply

Your email address will not be published. Required fields are marked *