Skip to content

Instantly share code, notes, and snippets.

@hereswhatidid
Last active February 12, 2016 14:23
Show Gist options
  • Select an option

  • Save hereswhatidid/f6f0f33e109476179a15 to your computer and use it in GitHub Desktop.

Select an option

Save hereswhatidid/f6f0f33e109476179a15 to your computer and use it in GitHub Desktop.
ACF field generation code.
<?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' => '',
)
<?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,
)
<?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,
)
<?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,
)
<?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