at path:
ROOT
/
wp-content
/
plugins
/
contact-form-7
/
modules
/
reflection.php
run:
R
W
Run
akismet
DIR
2026-02-08 11:50:06
R
W
Run
constant-contact
DIR
2026-02-08 11:50:06
R
W
Run
recaptcha
DIR
2026-02-08 11:50:06
R
W
Run
sendinblue
DIR
2026-02-08 11:50:06
R
W
Run
stripe
DIR
2026-02-08 11:50:06
R
W
Run
turnstile
DIR
2026-02-08 11:50:06
R
W
Run
acceptance.php
7.3 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
checkbox.php
9.88 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
count.php
1.45 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
date.php
6.08 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
disallowed-list.php
1.83 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
doi-helper.php
730 By
2026-02-08 11:50:06
R
W
Run
Delete
Rename
file.php
6.94 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
flamingo.php
8.42 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
hidden.php
776 By
2026-02-08 11:50:06
R
W
Run
Delete
Rename
listo.php
755 By
2026-02-08 11:50:06
R
W
Run
Delete
Rename
number.php
6.64 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
quiz.php
6.81 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
really-simple-captcha.php
13.45 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
reflection.php
2.27 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
response.php
460 By
2026-02-08 11:50:06
R
W
Run
Delete
Rename
select.php
6.62 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
submit.php
2.7 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
text.php
8.39 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
textarea.php
5.25 KB
2026-02-08 11:50:06
R
W
Run
Delete
Rename
error_log
up
📄
reflection.php
Save
<?php /** * Reflection module * * @link https://contactform7.com/reflection/ */ add_action( 'wpcf7_init', 'wpcf7_add_form_tag_reflection', 10, 0 ); /** * Registers reflection-related form-tag types. */ function wpcf7_add_form_tag_reflection() { wpcf7_add_form_tag( 'reflection', 'wpcf7_reflection_form_tag_handler', array( 'name-attr' => true, 'display-block' => true, 'not-for-mail' => true, ) ); wpcf7_add_form_tag( 'output', 'wpcf7_output_form_tag_handler', array( 'name-attr' => true, 'not-for-mail' => true, ) ); } /** * The form-tag handler for the reflection type. */ function wpcf7_reflection_form_tag_handler( $tag ) { if ( empty( $tag->name ) ) { return ''; } $values = $tag->values ? $tag->values : array( '' ); if ( ! wpcf7_get_validation_error( $tag->name ) ) { $hangover = array_filter( (array) wpcf7_get_hangover( $tag->name ) ); if ( $hangover ) { $values = $hangover; } } $content = array_reduce( $values, static function ( $carry, $item ) use ( $tag ) { $output_tag = sprintf( '<output %1$s>%2$s</output>', wpcf7_format_atts( array( 'name' => $tag->name, 'data-default' => $item, ) ), ( '' !== $item ) ? esc_html( $item ) : ' ' ); return $carry . $output_tag; }, '' ); $html = sprintf( '<fieldset %1$s>%2$s</fieldset>', wpcf7_format_atts( array( 'data-reflection-of' => $tag->name, 'class' => $tag->get_class_option( wpcf7_form_controls_class( $tag->type ) ), 'id' => $tag->get_id_option(), ) ), $content ); return $html; } /** * The form-tag handler for the output type. */ function wpcf7_output_form_tag_handler( $tag ) { if ( empty( $tag->name ) ) { return ''; } $value = (string) reset( $tag->values ); if ( ! wpcf7_get_validation_error( $tag->name ) ) { $hangover = array_filter( (array) wpcf7_get_hangover( $tag->name ) ); if ( $hangover ) { $value = (string) reset( $hangover ); } } $html = sprintf( '<output %1$s>%2$s</output>', wpcf7_format_atts( array( 'data-reflection-of' => $tag->name, 'data-default' => $value, 'name' => $tag->name, 'class' => $tag->get_class_option( wpcf7_form_controls_class( $tag->type ) ), 'id' => $tag->get_id_option(), ) ), esc_html( $value ) ); return $html; }