skipv1_0_0editor
skip_editor( $name, $args ).
Description
Default UsageThis will create an automated saved editor
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.
- 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
. - save (boolean) TRUE if value of field have to be saved in Database, FALSE if not (default TRUE).
Example
Creating a labeled Editor
field in an automatic saved form.
skip_form_start( myformname );
$args
= array(
'id' = myelement
id,,
'label' => Content
);
skip_editor
( mycontent, $args
);
skip_form_end(…);
Getting back the saved data.
$city
= skip_value( myformname , mycontent );
Parameters (3)
- 0. $name (string)
- Name of
Editor
field. - 1. $label — Optional. (constant) =>
FALSE
- List of Arguments.
- 2. $args — Optional. (array) =>
array()
- The args.
Usage
if ( !function_exists( 'skip\v1_0_0\editor' ) ) { require_once ABSPATH . PLUGINDIR . 'facebook-fanpage-import/includes/skip/elements/forms/editor.php'; } // Name of Editor field. $name = ''; // List of Arguments. $label = FALSE; // The args. $args = array(); // NOTICE! Understand what this does before running. $result = skip\v1_0_0\editor($name, $label, $args);
Defined (1)
The function is defined in the following location(s).