skipv1_0_0textfield
skip_text( $name, $args );.
Description
Adding a Textfield
.
Default UsageThis will create an automated saved textfield
.
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.
- classes (string) Name of CSS Classes which will be inserted into HTML seperated by empty space.
- before_
element
(string) Content before theelement
. - after_
element
(string) Content after theelement
.
Example
Creating a labeled Textfield
in an automatic saved form.
skip\form_start( myformname );
skip\textfield
( name,, labelname );
skip\form_end(…);
Getting back the saved data.
$value
= skip\value( myformname , name, );
Parameters (3)
- 0. $name (string)
- Name of field.
- 1. $label — Optional. (constant) =>
FALSE
- Label of field.
- 2. $description — Optional. (bool) =>
false
- Description of field which is shown under
element
Usage
if ( !function_exists( 'skip\v1_0_0\textfield' ) ) { require_once ABSPATH . PLUGINDIR . 'facebook-fanpage-import/includes/skip/elements/forms/textfield.php'; } // Name of field. $name = ''; // Label of field. $label = FALSE; // Description of field which is shown under element $description = false; // NOTICE! Understand what this does before running. $result = skip\v1_0_0\textfield($name, $label, $description);
Defined (1)
The function is defined in the following location(s).