I want to display my custom menu in custom post listing page under the title of custom post type.
For example there are post type and one small icon on custom post type listing page as well as add/edit custom post type page.
Under that icon I want to add my custom menu from my custom plugin.
Can I add my menu at that place?
One more thing is that can I add “Cancel” link to the add/edit page for go to listing page?
To insert links at that position, you need the filter
views_edit-POST_TYPE
, replacing POST_TYPE by the slug of your CPT.Example:
Results in:
The second question should have been a separate Q, but while we at it…
You could create your own meta box, but there’s a couple of useful hooks:
Which results in: