LLMS_Question::has_video()
Determine if a featured video is enabled & not empty
Return Return
(bool)
Source Source
File: includes/models/model.llms.question.php
public function has_video() {
$enabled = $this->get( 'video_enabled' );
$src = $this->get( 'video_src' );
return ( 'yes' === $enabled && $src );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.16.12 | Unknown. |
| 3.16.0 | Introduced. |