PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
weforms
/
includes
/
fields
<?php /** * Text Field Class */ class WeForms_Form_Field_Hidden extends WeForms_Field_Contract { function __construct() { $this->name = __( 'Hidden Field', 'weforms' ); $this->input_type = 'custom_hidden_field'; $this->icon = 'eye-slash'; } /** * Render the text field * * @param array $field_settings * @param integer $form_id * * @return void */ public function render( $field_settings, $form_id ) { ?> <input type="hidden" name="<?php echo esc_attr( $field_settings['name'] ); ?>" value="<?php echo esc_attr( $field_settings['meta_value'] ); ?>"> <?php } /** * Get field options setting * * @return array */ public function get_options_settings() { $settings = array( array( 'name' => 'name', 'title' => __( 'Meta Key', 'weforms' ), 'type' => 'text', 'section' => 'basic', 'priority' => 10, 'help_text' => __( 'Name of the meta key this field will save to', 'weforms' ), ), array( 'name' => 'meta_value', 'title' => __( 'Meta Value', 'weforms' ), 'type' => 'text', 'section' => 'basic', 'priority' => 11, 'help_text' => __( 'Enter the meta value', 'weforms' ), ), ); return $settings; } /** * Get the field props * * @return array */ public function get_field_props() { $props = array( 'template' => $this->get_type(), 'name' => '', 'meta_value' => '', 'is_meta' => 'yes', 'id' => 0, 'is_new' => true, 'wpuf_cond' => null ); return $props; } }
[+]
..
[-] class-field-sectionbreak.php
[edit]
[-] class-field-html.php
[edit]
[-] class-field-textarea.php
[edit]
[-] class-field-text.php
[edit]
[-] class-field-image.php
[edit]
[-] class-field-multidropdown.php
[edit]
[-] class-field-url.php
[edit]
[-] class-field-name.php
[edit]
[-] class-field-recaptcha.php
[edit]
[-] class-field-checkbox.php
[edit]
[-] class-abstract-fields.php
[edit]
[-] class-field-email.php
[edit]
[-] class-field-date.php
[edit]
[-] class-fields-pro.php
[edit]
[-] class-field-dropdown.php
[edit]
[-] class-field-hidden.php
[edit]
[-] class-field-radio.php
[edit]