Editor::prepare()

Description #

Prepare field.

Changelog #

VersionDescription
4.1.8Introduced.

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 );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment