gl_field_text
The WordPress Core gl field text function.
Description
gl_field_text( $settings_values, $settings_key, $key, (constant) $isColor = false, (constant) $short_desc = null, (constant) $desc = null );
Parameters (6)
- 0. $settings_values
- The settings values.
- 1. $settings_key
- The settings key.
- 2. $key
- The key.
- 3. $iscolor — Optional. (constant) =>
false
- The isColor.
- 4. $short_desc — Optional. (constant) =>
null
- The short desc.
- 5. $desc — Optional. (constant) =>
null
- The desc.
Usage
if ( !function_exists( 'gl_field_text' ) ) { require_once '/admin/pages.php'; } // The settings values. $settings_values = null; // The settings key. $settings_key = null; // The key. $key = null; // The isColor. $iscolor = false; // The short desc. $short_desc = null; // The desc. $desc = null; // NOTICE! Understand what this does before running. $result = gl_field_text($settings_values, $settings_key, $key, $iscolor, $short_desc, $desc);
Defined (1)
The function is defined in the following location(s).
- /admin/pages.php
- function gl_field_text($settings_values, $settings_key, $key, $isColor = false, $short_desc = null, $desc = null) {
- ?>
- <input type="text" name="<?php echo $settings_key; ?>[<?php echo $key; ?>]" value="<?php echo esc_attr( $settings_values[$key] ); ?>" <?php if ( $isColor == true) echo 'class="color-field"'; ?> style="width:350px" /> <?php if ( $short_desc ) echo $short_desc; ?><br><br>
- <span style="color:#999"><em><?php if ( $desc ) echo $desc; ?></em></span>
- <?php