How To List All Custom Post Type In WordPress Admin Dashboard

I would like to print a list of all WordPress post type within my WordPress admin dashboard. So I can check it quickly when I am writing the plugin

You can use the get_post_types function to get a list of WordPress post type objects. Meanwhile, you can use “wp_add_dashboard_widget” to add your custom widgets for your WordPress admin dashboard.

Output list of post type for new admin dashboard widget

Add new admin dashboard widget with output function

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments