<?php add_action( 'wpcf7_init', 'wpcf7_add_form_tag_hidden', 10, 0 ); function wpcf7_add_form_tag_hidden() { wpcf7_add_form_tag( 'hidden', 'wpcf7_hidden_form_tag_handler', array( 'name-attr' => true, 'display-hidden' => true, ) ); } function wpcf7_hidden_form_tag_handler( $tag ) { if ( empty( $tag->name ) ) { return ''; } $atts = array(); $class = wpcf7_form_controls_class( $tag->type ); $atts['class'] = $tag->get_class_option( $class ); $atts['id'] = $tag->get_id_option(); $value = (string) reset( $tag->values ); $value = $tag->get_default_option( $value ); $atts['value'] = $value; $atts['type'] = 'hidden'; $atts['name'] = $tag->name; $atts = wpcf7_format_atts( $atts ); $html = sprintf( '<input %s />', $atts ); return $html; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
akismet | Folder | 0755 |
|
|
constant-contact | Folder | 0755 |
|
|
recaptcha | Folder | 0755 |
|
|
sendinblue | Folder | 0755 |
|
|
stripe | Folder | 0755 |
|
|
acceptance.php | File | 7.63 KB | 0644 |
|
checkbox.php | File | 9.12 KB | 0644 |
|
count.php | File | 1.45 KB | 0644 |
|
date.php | File | 7.9 KB | 0644 |
|
disallowed-list.php | File | 1.77 KB | 0644 |
|
doi-helper.php | File | 730 B | 0644 |
|
file.php | File | 6.68 KB | 0644 |
|
flamingo.php | File | 8.34 KB | 0644 |
|
hidden.php | File | 776 B | 0644 |
|
listo.php | File | 743 B | 0644 |
|
number.php | File | 8.7 KB | 0644 |
|
quiz.php | File | 7.22 KB | 0644 |
|
really-simple-captcha.php | File | 17.48 KB | 0644 |
|
reflection.php | File | 2.27 KB | 0644 |
|
response.php | File | 460 B | 0644 |
|
select.php | File | 7.13 KB | 0644 |
|
submit.php | File | 2.87 KB | 0644 |
|
text.php | File | 10 KB | 0644 |
|
textarea.php | File | 6.53 KB | 0644 |
|