Textarea::prepare()
Description #
Prepare field.
Source #
File: lib/form/class-textarea.php
protected function prepare() { $this->args = wp_parse_args( $this->args, array( 'label' => __( 'AnsPress Textarea Field', 'anspress-question-answer' ), 'attr' => array( 'rows' => 8, ), ) ); // Call parent prepare(). parent::prepare(); $this->sanitize_cb = array_merge( array( 'textarea_field' ), $this->sanitize_cb ); }
Expand full source code Collapse full source code View on GitHub: lib/form/class-textarea.php:40
Add your comment