Get all the registered Post Types in WordPress
How to Get all the registered Post Types in WordPress. This is a small piece of code to retrieve all registered post types in WordPress. When ever if you want to know what are the post types registered in WordPress. Just add this code to any theme files.
Add this code to header.php or footer.php in Theme files.