Title: how to use code generated from Export to Code plugin
Last modified: January 30, 2021

---

# how to use code generated from Export to Code plugin

 *  Resolved [thevikas](https://wordpress.org/support/users/thevikas/)
 * (@thevikas)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-code-generated-from-export-to-code-plugin/)
 * I got the php output after using Export to Code addon in Pods.
    Now I do I use
   that php? Where/How do I set it up?

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

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-code-generated-from-export-to-code-plugin/#post-13984985)
 * Hi [@thevikas](https://wordpress.org/support/users/thevikas/)
 * Why did you export to PHP in the first place?
    If you are not familiar with PHP
   I would advice you to keep using Pods instead of PHP to create your custom post
   types etc.
 * Cheers, Jory
 *  Thread Starter [thevikas](https://wordpress.org/support/users/thevikas/)
 * (@thevikas)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-code-generated-from-export-to-code-plugin/#post-13985015)
 * I needed to do deployment on my staging server. And the project is on-going so
   pods/fields will keep changing for some time. I do not want to manually create
   the pods on that server. I just need a simple way, which also gets tracked by
   git.
    So exporting to php seemed a good idea that I add in the git repo.
 * I am a php dev.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-code-generated-from-export-to-code-plugin/#post-13985080)
 * I assume you’ve used this plugin: [https://github.com/pods-framework/pods-export-code](https://github.com/pods-framework/pods-export-code)
 * Keep in mind that this hasn’t been maintained for over 7 years. I’m quite sure
   it won’t work anymore.
    But, if it does, you can create your own plugin from 
   the exported code or include it in your theme. Again, this is old legacy code
   and most likely isn’t supported by the current version of Pods.
 * Cheers, Jory
 *  [Gnegreiros](https://wordpress.org/support/users/gnegreiros/)
 * (@gnegreiros)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/how-to-use-code-generated-from-export-to-code-plugin/#post-14119375)
 * Hi,
 * Same question here.
    Pods-export-code doesn’t work.
 * How can I export Pods to create my own plugin?
 * Thank you,

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

The topic ‘how to use code generated from Export to Code plugin’ is closed to new
replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [export](https://wordpress.org/support/topic-tag/export/)

 * 4 replies
 * 3 participants
 * Last reply from: [Gnegreiros](https://wordpress.org/support/users/gnegreiros/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/how-to-use-code-generated-from-export-to-code-plugin/#post-14119375)
 * Status: resolved