skipv1_0_0hidden

skip_hidden( $name, $args )
.

Description

skip\v1_0_0\hidden( (string) $name, (array) $args = array() ); 

Adding a Hidden field.

Default UsageThis will create an automated saved hidden field.

Parameters

$name // (string) (required) The name of the field.
$args // (array) (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 the element.
  • after_element (string) Content after the element.
  • save (boolean) TRUE if value of field have to be saved in Database, FALSE if not (default TRUE).

Example

Creating a hidden field in an automatic saved form.

skip_form_start( myformname  );

$args = array( 'id' = myelementid,, 'label' => Content ); skip_editor( myhiddenfield, $args );

skip_form_end();

Getting back the saved data.

$value = skip_value( myformname , myhiddenfield );

Parameters (2)

0. $name (string)
Name of field.
1. $args — Optional. (array) => array()
List of Arguments.

Usage

  1. if ( !function_exists( 'skip\v1_0_0\hidden' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'facebook-fanpage-import/includes/skip/elements/forms/hidden.php'; 
  3.  
  4. // Name of field. 
  5. $name = ''; 
  6.  
  7. // List of Arguments. 
  8. $args = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = skip\v1_0_0\hidden($name, $args); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/skip/elements/forms/hidden.php