LLMS_Question::has_description()
Determine if a description is enabled and not empty
Return Return
(bool)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.12 | Unknown. |
3.16.0 | Introduced. |