Last active
February 12, 2016 14:23
-
-
Save hereswhatidid/f6f0f33e109476179a15 to your computer and use it in GitHub Desktop.
ACF field generation code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| array ( | |
| 'key' => 'field_56bde9a0ea676', | |
| 'label' => 'Email', | |
| 'name' => 'email', | |
| 'type' => 'email', | |
| 'instructions' => '', | |
| 'required' => 0, | |
| 'conditional_logic' => 0, | |
| 'wrapper' => array ( | |
| 'width' => '', | |
| 'class' => '', | |
| 'id' => '', | |
| ), | |
| 'default_value' => '', | |
| 'placeholder' => '', | |
| 'prepend' => '', | |
| 'append' => '', | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| array ( | |
| 'key' => 'field_56bde993ea675', | |
| 'label' => 'Numeric', | |
| 'name' => 'numeric', | |
| 'type' => 'number', | |
| 'instructions' => '', | |
| 'required' => 0, | |
| 'conditional_logic' => 0, | |
| 'wrapper' => array ( | |
| 'width' => '', | |
| 'class' => '', | |
| 'id' => '', | |
| ), | |
| 'default_value' => '', | |
| 'placeholder' => '', | |
| 'prepend' => '', | |
| 'append' => '', | |
| 'min' => '', | |
| 'max' => '', | |
| 'step' => '', | |
| 'readonly' => 0, | |
| 'disabled' => 0, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| array ( | |
| 'key' => 'field_56bde973ea673', | |
| 'label' => 'Basic Text Field', | |
| 'name' => 'basic_text_field', | |
| 'type' => 'text', | |
| 'instructions' => '', | |
| 'required' => 0, | |
| 'conditional_logic' => 0, | |
| 'wrapper' => array ( | |
| 'width' => '', | |
| 'class' => '', | |
| 'id' => '', | |
| ), | |
| 'default_value' => '', | |
| 'placeholder' => '', | |
| 'prepend' => '', | |
| 'append' => '', | |
| 'maxlength' => '', | |
| 'readonly' => 0, | |
| 'disabled' => 0, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| array ( | |
| 'key' => 'field_56bde97fea674', | |
| 'label' => 'Basic Text Area', | |
| 'name' => 'basic_text_area', | |
| 'type' => 'textarea', | |
| 'instructions' => '', | |
| 'required' => 0, | |
| 'conditional_logic' => 0, | |
| 'wrapper' => array ( | |
| 'width' => '', | |
| 'class' => '', | |
| 'id' => '', | |
| ), | |
| 'default_value' => '', | |
| 'placeholder' => '', | |
| 'maxlength' => '', | |
| 'rows' => '', | |
| 'new_lines' => 'wpautop', | |
| 'readonly' => 0, | |
| 'disabled' => 0, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| array ( | |
| 'key' => 'field_56bde9adea677', | |
| 'label' => 'URL', | |
| 'name' => 'url', | |
| 'type' => 'url', | |
| 'instructions' => '', | |
| 'required' => 0, | |
| 'conditional_logic' => 0, | |
| 'wrapper' => array ( | |
| 'width' => '', | |
| 'class' => '', | |
| 'id' => '', | |
| ), | |
| 'default_value' => '', | |
| 'placeholder' => '', | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment