AnsPress_Form::desc()

Description #

Output description of a form fields.

Changelog #

VersionDescription
2.0.1Introduced.

Source #

File: includes/class/form.php

	private function desc() {
		if ( ! $this->field['show_desc_tip'] ) {
			$this->output .= ( ! empty( $this->field['desc'] ) ? '<p class="ap-field-desc">' . $this->field['desc'] . '</p>' : '');
		} else {

			$this->output .= ( ! empty( $this->field['desc'] ) ? '<span class="ap-tip ap-field-desc" data-tipposition="right" title="' . esc_html( $this->field['desc'] ) . '">?</span>' : '');
		}
	}

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