Editor::prepare()
Description #
Prepare field.
Source #
File: lib/form/class-editor.php
protected function prepare() { $this->args = wp_parse_args( $this->args, array( 'label' => __( 'AnsPress Editor Field', 'anspress-question-answer' ), 'editor_args' => array( 'quicktags' => false, ), ) ); // Call parent prepare(). parent::prepare(); // Make sure all text field are sanitized. $this->sanitize_cb = array_merge( array( 'description', 'wp_kses' ), $this->sanitize_cb ); }
Expand full source code Collapse full source code View on GitHub: lib/form/class-editor.php:47
Add your comment