wordpress dynamic form and input field implementation system
include wpFormHelper.php in your functions.php and make dynamic form any where .
wpfh_form_open(
array(
'id' => '',
'class' => '',
'action' => '',
'method' => '',
'enctype' => ''
)
);
wpfh_input_fields(
array(
'type' => 'text',
'id' => '',
'class' => '',
'required' => false,
'name' => '',
'value' => '',
'placeholder' => '',
'options' => array(
'1' => 'One',
'2' => 'Two',
'3' => 'Three',
),
'custom_attr' => array()
)
);
- text
- number
- hidden
- url
- textarea
- select
- checkbox
- radio
wpfh_submit_btn(
array(
'id' => '',
'class' => '',
'value' => ''
)
);
wpfh_form_close();