Textarea
<?php
$tea_content = array(
array(
'type' => 'textarea',
'title' => 'How do Penguins drink their cola?',
'id' => 'my_textarea_field_id',
'default' => 'On the rocks.',
'placeholder' => 'Tell us how?',
'description' => 'A simple question to know if you will be able to survive to the Penguin domination.',
),
);
![textarea.png 1233](https://files.readme.io/fU6urz2uQmJI1Fz5DiZA_textarea.png)
Retrieve data
Using the _get_option('my_textarea_field_id')
method, you'll get (with a json_encode()
display):
"On the rocks."
Updated less than a minute ago