Radio::prepare()
Description #
Prepare field.
Source #
File: lib/form/class-radio.php
protected function prepare() { $this->args = wp_parse_args( $this->args, array( 'label' => __( 'AnsPress Radio Field', 'anspress-question-answer' ), ) ); // Call parent prepare(). parent::prepare(); // Make sure checkbox value are sanitized. $this->sanitize_cb = array_merge( array( 'text_field' ), $this->sanitize_cb ); }
Expand full source code Collapse full source code View on GitHub: lib/form/class-radio.php:40
Add your comment