1. Home
  2. Docs
  3. WordPress Studio Framework
  4. Framework Fields
  5. Textarea Field

Textarea Field


idstring A unique ID. This ID will be used to get the value
typestringtextareaType of the field
titlestring Title of the field
defaultstring Default value from database, if the option doesn’t exist
subtitlestring Subtitle to display below the title
descstring Description to display after the field
helpstring Text to display on right-corner (as hover/popup) the field
classstring Extra CSS classes (space separated) to append to the field
beforestring Content to display before the field
afterstring Content to display after the field
dependencyarray Define field visibility depending on other field value
attributesarray Extra HTML attributes to append to the field
sanitizestring Callback function for sanitizing value
validatestring Callback function for validating value
placeholderstring The placeholder to be displayed when nothing is typed
shortcoderarray|string The call a shortcode trigger button by shortcode id(s)

Textarea Field Example

  'id' => 'example-textarea',
  'type' => 'textarea',
  'title' => 'Example Textarea',
  'default' => 'Lorem ipsum textarea',

Textarea Field Usage

$my_options = get_option( 'custom_framework' ); // prefix of framework
echo $my_options['example-textarea']; // id of field
Was this article helpful to you? Yes No

How can we help?