You’re looking for get_post_types();
It returns an array of every post type registered. To get the labels though, you’ll need to do something like:
foreach (get_post_types() as $pt) :
$obj = get_post_type_object($pt);
echo $obj->labels->name;
endforeach;
Related Posts:
- Best collection of code for your 'functions.php' file [closed]
- Creating button next to “add media” that allows you to choose a single post
- Remove Duplicator plugin from admin menu if not an administrator
- Add a custom form on the post-new.php admin page
- Echo custom admin field into a is_single()
- admin panel save option with ajax
- similar of my posts in all over the internet sites and blogs [closed]
- How to structure a plugin
- How to implement a customizable free OpenID authentication?
- Should all plugins be encapsulated in a Class?
- What Features would you Most Like to See Added to WordPress? [closed]
- How can I edit post data before it is saved?
- is_plugin_active function doesn’t exist
- Difference between add_filter and apply_filters
- Custom pages with plugin
- Proper Way to Modify Plugin
- How to check if user is in back end?
- Delete tables from database when deleting plugin
- How do i know the current post type when on post.php in admin?
- Create tabs inside Plugins Admin Page [closed]
- Changing the “Plugin Activated” Message Default
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- What are the best practices for updating?
- How can I delete orphan keys in WordPress database tables?
- Consuming an external API in WordPress?
- How to edit a wordpress plugin without break its update process
- How to set back-end language per user?
- How to delete all records from or empty a custom database table?
- Shared functionality in plugins and themes
- What is right way to go about adding functionality to a published WordPress plugin?
- Looking for a Table of Contents (TOC) plugin for WordPress
- Remote upload file to server B
- WordPress Plugin Development In MVC Architecture, How?
- Is it a good idea to edit an already existing plugin to add more functionality?
- Checking if an attribute exists in a shortcode
- How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- How Is Network Activate Different From Activate (by Implementation)?
- Creating Unique Post URLs for A/B Testing… Is this even possible?
- Is There a WordPress Hook to Filter the Edit Posts View?
- OpenID for WordPress 3.x? [duplicate]
- How can I import a class privately into a plugin?
- Changing wp login url without .htaccess
- Add section (add_settings_section) to a custom page (add_submenu_page)
- How to delete the Hello Dolly plugin automatically?
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Where should I use get_option in a plugin
- Get a button for in the Editor
- Show Similar Post Titles ( Similar to Stack Exchange )
- Plugin (or Theme) containing its own Plugins?
- How do I unlock a post programmatically?
- How to enable edit button in the theme’s customize UI?
- Admin plugin, how can I output a different content-type?
- Plugin or mod for wordpress to make content publication SUPER easy
- GPL and plugins
- How can I log a user out of WordPress before the page loads?
- How do I extend one plugin I’m writing with another I’m writing using classes?
- Disable Specific Widgets on Selected Pages of a WordPress Website?
- How to create extendable wordpress plugins
- Delete Post With No Traffic?
- Create page when plugin is activated
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- Using Vagrant for customizable WordPress Multi-sites [closed]
- Generate custom output for page/URL in a plugin
- How do I only load a plugin js on it’s settings pages?
- How to enable Admins to see Plugins
- Open external links in a new window
- How to add a help tab to all admin pages – including plugin pages
- Custom plugin settings: clicking “save changes” does not display success message
- WooCommerce create new product and add to cart on form submit
- Extending WC_Cart in woocommerce
- How can I limit functionality in one version of a plugin?
- Integrating plugins in themes
- Adding custom Javascript to the head tag in Admin
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- How to add usermeta to “Notice of Email Change” email message
- Which functions in theme or plugin load first
- Bad Request (Invalid Hostname) on working server, database problem
- WordPress Plugin as ‘Library’ From Abstract Application?
- How to show custom message once on plugin activation?
- How to develop a community feature in the dashboard for multiauthor site
- What’s the recommended process for organising collaborative posting?
- Any way to use a custom Parameter for youtube embed without using an iframe?
- Post source link plugin – small modification
- How to add users roles dropdown in registration in wordpress
- Add CSS animation as Preloader to WordPress
- Custom comment type maybe?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- wp_schedule_event / cron_schedules – custom recurrence time not working in Plugin
- Add custom meta box on Post page
- Posts wont expire
- How to load a new template page according to a particular URL?
- Custom Widget Creating PHP Exception When Placed In Its Own PHP File
- How to set value/term of a Woocommerce attribute text field in admin panel?
- WordPress network: set themes and plugins for new blog
- Updating post meta for custom post types
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- WP get_permalink Return Wrong URL
- Themes VS Plugins [duplicate]
- Failed to invoke other hook from the init hook
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List