Is there a way to display a custom post type menu item as “users” submenu?

Question

“client” is a custom post type because I have to add several metaboxes.
For a better ergonomy on admin side, I would like to add my custom post type “client” as “users” submenu.

I understand to display a custom post type, normally urls are :

  1. https://my-site.com/wp-admin/edit.php?post_type=client
  2. https://my-site.com/wp-admin/post-new.php?post_type=client

When I add “client” inside users menu, I got this url :

https://my-site.com/wp-admin/users.php?page=client

So, that does not work.

How can I get the client edition with list/post-new/edit-new based on the last url ?

0
, J.BizMai 3 years 2020-07-14T15:10:21-05:00 0 Answers 62 views 0

Leave an answer

Browse
Browse