I don’t think you’ll be able to get all the post types that are registered on init. (other plugins may register extra post types)
Can’t you hook into wp_loaded?
Related Posts:
- How to Add Custom Taxonomy To Woocommerce Plugin
- Prevent trash/delete action on specific post types
- How to add custom content template part for a custom post type on main query using a plugin
- register_taxonomy with multiple object type and update_count_callback
- How often do you need to register_post_type?
- How to use a dedicated template for the Custom Post Type from a plugin?
- Remove POST_TYPE from custom post type permalink
- How to register custom post types in a plugin?
- How to append element after thumbnail
- How to have the right design for a custom post type without accessing themes
- Custom Post Type | Fatal Error on register_post_type()
- Set object terms not working on plugin activation
- custom post type not showing in menu
- Custom posts don’t work
- Adding a custom post type taxonomy template in plugin
- Addition of custom option panel crashes Media Library & Admin Area
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- Custom fields for custom post type
- ACF in wordpress
- post_parent in custom post type
- Unable to format dates to put in event calendar
- Custom post type in Custom widget – $listItem
- Validate Custom Post Type fields
- Types plugin custom post add_action hooks
- how can i show a google map in custom post type
- Restrict Custom Post Type to One Item
- Custom Post Type Front Page Gives 404
- Show Post columns to specific users on condition
- Insert custom taxonomy into category query
- Run query on specific admin options page and send results to select field in another function
- Custom post type that lets users create a set of posts?
- Can’t save custom post type fields
- Add Excerpt On Quicksand Plugin
- Custom Post Types in plugins?
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- Create a custom archive page for a custom post type in a plugin
- Media library – Limit images to custom post type
- Loading custom page template via plugin
- Why The Init Hook For Custom Post Types
- How to append text to title of Custom Post Type post (without affecting all titles on page)?
- update a post meta from a single table cell TablePress
- How to add post_author column to custom post type
- Use a textarea for a custom post type
- How do I include drag-and-drop in a plugin?
- Hide Meta Boxes for Non-Admins
- Issue to get wp_get_attachment_image with cmb2
- Hook to override title, image and content
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- No posts found – Custom Post Type show_ui
- Insert and then update post_type by wp_update_post
- WordPress multiple custom post types capability conflict in a single menu
- Action or Filter Hook for a Custom Importer
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Dynamic dropdown select values depending on other custom field value
- Set a CPT slug as a base name for all the taxonomies
- Post injections into Site Origins Page builder [closed]
- A custom post type in another post type
- How can you use one database with multisite
- Adding CSS to custom post type admin page causes error
- how to set a WP Plugin’s url
- Custom post type, have only my meta boxes
- detect your custom post type in WordPress
- Option page’s form doesn’t work
- How can I include active content in a custom post type?
- ajax response not recieving
- Can’t delete a custom post in front end with custom role
- Add custom field to admin area witthout using a metabox
- Can I assign a theme to a custom post type?
- Create Custom Post type that uses Page.php template
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- wordpress post_where set only for my costum post type
- CPT to installable Plugin
- filter the_content, custom post type, and wp_query
- Fill custom fields when saving custom post types
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Custom post category name showing empty
- Is it possible to get the specific content on the search page?
- Get next and prev item from custom WP_Query and Custom Post Type
- How add Filter by Tags and by categories to custom post type in Gutenberg block
- Error 404 change permalink term custom term taxonomy
- Show a custom post title in another custom post type in Meta box
- Register custom_post_type from static function
- How to select meta key in custom database query
- Set a template on a custom post in the plugin
- Simple way to hide\show an announcement (just a div) on homepage?
- How to seperate posts by categories?
- Widget area for individual posts (custom post type)?
- How can I load Template file from wordpress plugin
- Link two different post using there post_id in post meta
- Remove custom post type generated by a plugin (The Events Calendar) [closed]
- Show custom taxonomy not in submenu
- How to develop custom URL redirection
- Execute code only after user clicks ‘update’ button for CPT being edited
- Can the wp_posts table have the same slug (post_name) in multiple statuses (post_status)?
- Loop carousel slider in wordpress
- Resources to learn OOP for WordPress plugins, custom post types, etc
- Configure which plugin custom post types get registered
- How to dynamically register custom post type
- How to filter custom post data with AJAX?
- WP 4.4 upgrade custom post type cannot add new