Title: Create fields programmatically
Last modified: August 21, 2016

---

# Create fields programmatically

 *  Resolved [bistrototal](https://wordpress.org/support/users/bistrototal/)
 * (@bistrototal)
 * [13 years ago](https://wordpress.org/support/topic/create-fields-programmatically/)
 * Hi!
 * Is it possible to create the fields programmatically with PHP code, without touching
   the WP admin interface?
 * [http://wordpress.org/extend/plugins/custom-field-suite/](http://wordpress.org/extend/plugins/custom-field-suite/)

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

 *  Plugin Author [Matt Gibbs](https://wordpress.org/support/users/mgibbs189/)
 * (@mgibbs189)
 * [13 years ago](https://wordpress.org/support/topic/create-fields-programmatically/#post-3810040)
 * There isn’t a way to register fields in code, but you could programmatically 
   save field groups to the database.
 * Here’s all the CFS import / export / save code:
    [https://github.com/mgibbs189/custom-field-suite/blob/master/includes/classes/field_group.php](https://github.com/mgibbs189/custom-field-suite/blob/master/includes/classes/field_group.php)
 *  Thread Starter [bistrototal](https://wordpress.org/support/users/bistrototal/)
 * (@bistrototal)
 * [13 years ago](https://wordpress.org/support/topic/create-fields-programmatically/#post-3810182)
 * Ok, thanks for your feedback!
 * I’ve always thought that it’s nice to have such things in a file for easy version
   control. In addition I prefer working in an editor instead of WP’s control panel.
 * But that’s just my personal preference 🙂

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

The topic ‘Create fields programmatically’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bistrototal](https://wordpress.org/support/users/bistrototal/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/create-fields-programmatically/#post-3810182)
 * Status: resolved