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
- Delete tables from database when deleting plugin
- Changing the “Plugin Activated” Message Default
- What is right way to go about adding functionality to a published WordPress plugin?
- Changing wp login url without .htaccess
- WordPress Plugin as ‘Library’ From Abstract Application?
- Custom comment type maybe?
- Add custom meta box on Post page
- Posts wont expire
- Is there an action that is called when a post is restored from the trash?
- plugin for wp_list_categories with posts
- Is there a way to lock certain pages from being edited by anyone other then the admin?
- How to get last_updated and newest_blogs in WP 3.0
- Replace existing pages with new pages, keep menu links
- why in my wordpress admin panel the membership option is not showing
- Recommendations for books/resource to get started with wordpress 3 development (plugins/themes) [closed]
- Moving WordPress from host without FTP?
- Will Flutter work with WordPress 3.0?
- Making menu link open in new tab?
- Override the filter from plugin in child theme
- Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates? [closed]
- How to modify shortcode attributes with data from current post
- How can I capture Memberpress user info after signup [closed]
- See which user installed a plugin?
- Edit default comments page in WP Admin
- Globally register styles but enqueue them selectively
- Admin Panel pagination link styles
- Anonymous Postings
- Run plugins only on certain pages
- wp_generate_attachment_metadata is creating an empty array
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- Post category with counts been display like a menu
- Post custom Data value in The Events Calendar plugin [closed]
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Use of Templates in a Plugin
- Custom wordpress Theme and Plugin repository
- Automatic Updates Individual Plugins Not Working
- How to change the name of the “edit my profile” link in the WordPress admin backend
- WordPress as web application base
- URL rewrite of independent plugin?
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- Plugin function inside custom plugin
- WordPress as template engine
- Change the style of h1, h2, only in post entry
- How to see which sites use my installed plugins (wordpress multisite)
- Custom API plugin to execute 3rd party API to retrieve data
- WordPress – source link plugin – how to modify it?
- Minimize and Uglify WordPress Plugin Files
- Customize Menu | Styling LESS/SCSS code formats
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- How Should Custom Functions Be Called For Single Posts?
- same user role or copy the user role to be same as the other role
- Equivalent of admin.php for public pages
- Remove specific administrator’s capability
- problem with register_activation_hook in plugin
- Ajax request sends url rather than data
- How display specific category post to specific users?
- How can I replace content on site generated from plugin without changing plugin
- What is the most efficient way of adding additional functionaliy for admin only
- Edit post image attributes on fly?
- How to make PDF books readable on site with woo-commerce?
- Replace only the first CSS class
- Ultimate Members Default Post Layout problem
- Add custom WordPress admin page with pretty url via code
- Custom Icon assigned to menu items not working for multi-site networks
- How to send custom mail when a user complete a specific form
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- How can I save cookies to members
- Am I using an action hook correctly?
- Should I paste CDN links in a JS file or use a Bootstrap CDN plugin?
- Defined user role to access plugin’s pages
- Conditional required fields for WordPress Contact Form 7
- Add a checkbox in plugin options page and make it actually work
- Embedding code snippets in posts with indentation
- Replace code in plugin template
- Display_rows() and column_cb() strange behaviour
- Directory structure for plugin changes
- How can I pass value to function in add_menu_page?
- disable lightbox in a plugin [closed]
- show Visual form builder in the front end
- Need Help Creating a Multi-Step, Video-Guided Enrollment Site
- User specific content (posts) / limiting visibility
- Remove the ‘Press This’ Tool
- Adding hero images to blog posts
- How wordpress plugin hooks works? [duplicate]
- Frontpage Admin Bar Disappeared
- Selling Downloadable Products [closed]
- How to delete remain data in WP database after deleting custom post via admin interface
- How can I modify the colors of my theme for a single section of my site? [closed]
- How to generate a responsive output from plugin?
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Looking for membership style plugin with edit option [closed]
- Create Custom Coupon Type
- Is website for online game guides doable in WordPress? [closed]
- Using ACF to allow user to add and edit multiple saved forms