skipv1_0_0textarea
skip_textarea( $name, $args );.
Description
Adding a Textarea
.
Default UsageThis will create an automated saved textarea
field.
Parameters
$name
// (string) (required) The name of the field.
$args
// (array/string) (optional) Values for further settings.
$args
Settings
- id (string) ID if the HTML
Element
. - label (string) Label for
Element
. - default (string) Default Value if no Value is set before.
- cols (int) Number of columns of the
Textarea
. - rows (int) Number of rows of the
Textarea
. - classes (string) Name of CSS Classes which will be inserted into HTML seperated by empty space.
- before_element (string) Content before the element.
- after_element (string) Content after the element.
Example
Creating a labeled Textarea
with 10
rows in an automatic saved form.
skip_form_start( myformname );
skip_textarea
( mytext,, label=Name&rows=10
);
skip_form_end(…);
Getting back the saved data.
$value
= skip_value( mytext,, name );
Parameters (3)
- 0. $name (string)
- Name of
Textarea
field. - 1. $label — Optional. (constant) =>
FALSE
- List of Arguments.
- 2. $args — Optional. (array) =>
array()
- The args.
Usage
if ( !function_exists( 'skip\v1_0_0\textarea' ) ) { require_once ABSPATH . PLUGINDIR . 'facebook-fanpage-import/includes/skip/elements/forms/textarea.php'; } // Name of Textarea field. $name = ''; // List of Arguments. $label = FALSE; // The args. $args = array(); // NOTICE! Understand what this does before running. $result = skip\v1_0_0\textarea($name, $label, $args);
Defined (1)
The function is defined in the following location(s).