LLMS_Question::has_description()

Determine if a description is enabled and not empty


Return Return

(bool)


Top ↑

Source Source

File: includes/models/model.llms.question.php

	public function has_description() {
		$enabled = $this->get( 'description_enabled' );
		$content = $this->get( 'content' );
		return ( 'yes' === $enabled && $content );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.12 Unknown.
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.