Checkbox::unsafe_value()
Description #
Get POST (unsafe) value of a field.
Source #
File: lib/form/class-checkbox.php
public function unsafe_value() { $request_value = $this->get( ap_to_dot_notation( $this->field_name ), null, $_REQUEST ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( isset( $request_value ) ) { return wp_unslash( $request_value ); } // Return `false` if form submitted but is not set. if ( $this->form()->is_submitted() ) { return false; } }
Expand full source code Collapse full source code View on GitHub: lib/form/class-checkbox.php:104
Add your comment