No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Problem: Is it possible to create a script that would export all custom post type and custom fields / group created in wp-types in a regular plugin in php in order to uninstall wp-types?
Solution: We don’t have any such script. What you can try is this:
=== Please backup your database and website first ===
1. Deactivate Types >> and re-register your Custom Post type with same “slug” using native WP method: https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/ http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/ (section: Creating a Custom Post Type Manually).
This way it will bring back all posts for that CPT.
2. Reactivate Types again. 3. Go to Toolset >> click Post Field Control button >> for all the Custom Fields that you want to keep without Types >> click “Stop managing with Types” for all those fields. Screenshot here: https://d7j863fr5jhrr.cloudfront.net/wp-content/uploads/2017/08/558121-post_field_control.png?x71388 4. Now you can deactivate & delete Types plugin.
This way you will have your CPT posts and Custom Fields without Types. Please note this is experimental workaround that I think can help. And you will loose Types UI or Interface which makes design looks different at the backend.