I'm trying write custom PHP code to retrieve a list of custom post types that have been created in Toolset. I tried using the WordPress function get_post_types(), but its output does not include post types defined in the Toolset interface. I searched the Toolset documentation for API information (at https://toolset.com/documentation/programmer-reference/) and couldn't find anything.
Can you offer any guidance? For example, are the post type definitions hiding in wp_postmeta somewhere?
Hello. Thank you for contacting the Toolset support.
There is no straight list of post type but you can try to access the option key "wpcf-custom-types" from the "wp_options" table that holds the serialize array that stores all the information related to post types using the WordPress function: get_option()