LLMS_Question::has_video()

Determine if a featured video is enabled & not empty


Return Return

(bool)


Top ↑

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


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.