skipv1_0_0Textfield
The WordPress Core skip v1 0 Textfield class.
Defined (1)
The class is defined in the following location(s).
- /includes/skip/elements/forms/textfield.php
- class Textfield extends Form_Element{
- /**
- * Constructor
- * @since 1.0.0
- * @param string $name Name of field.
- * @param string $label Label of field.
- * @param string $description Description of field which is shown under element
- * @param array/string $args List of Arguments.
- */
- function __construct( $name, $label = FALSE, $args = array() ) {
- $defaults = array(
- 'description' => '',
- 'default' => '',
- 'disabled' => FALSE
- );
- $args = wp_parse_args( $args, $defaults );
- $args[ 'label' ] = $label;
- parent::__construct( 'input', $name, $args );
- $this->add_param( 'type', 'text' ); // This is a text field!
- }
- }