Title: use old code from function.php to create post types with CPT UI
Last modified: June 8, 2023

---

# use old code from function.php to create post types with CPT UI

 *  Resolved [sagarthinkshaw](https://wordpress.org/support/users/sagarthinkshaw/)
 * (@sagarthinkshaw)
 * [3 years ago](https://wordpress.org/support/topic/use-old-code-from-function-php-to-create-post-types-with-cpt-ui/)
 * Hi!
 * I have old code in functions.php of my theme. But now I want to use another theme
   and I want to use CPT UI to create post type with new theme. so please share 
   if there are any easy way to do this, like I pick all code from functions.php
   and put that somewhere in CPT UI or I need to create every post type again with
   CPT UI manually.
 * Thanks In Advance.
    -  This topic was modified 3 years ago by [sagarthinkshaw](https://wordpress.org/support/users/sagarthinkshaw/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [3 years ago](https://wordpress.org/support/topic/use-old-code-from-function-php-to-create-post-types-with-cpt-ui/#post-16803938)
 * We don’t have any method to import a copy/paste of code, so it’s going to need
   to be manually done with copy/paste the labels and then configure the rest based
   on the dropdowns and whatnot. Since I know we do not have a 100% match for all
   the possible fields that can be done via PHP code versions (like capability management),
   we would need to filter in some values if they’re not present in CPTUI’s UI. 
   We DO have filters to help with those parts.
 *  Thread Starter [sagarthinkshaw](https://wordpress.org/support/users/sagarthinkshaw/)
 * (@sagarthinkshaw)
 * [3 years ago](https://wordpress.org/support/topic/use-old-code-from-function-php-to-create-post-types-with-cpt-ui/#post-16805409)
 * Okay, Got it. Thanks.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [3 years ago](https://wordpress.org/support/topic/use-old-code-from-function-php-to-create-post-types-with-cpt-ui/#post-16805477)
 * Let us know if you need anything else.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘use old code from function.php to create post types with CPT UI’ is closed
to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/use-old-code-from-function-php-to-create-post-types-with-cpt-ui/#post-16805477)
 * Status: resolved