LLMS_Question::get_video()

Retrieve video embed for question featured video


Return Return

(string)


Top ↑

Source Source

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

	 * @since 3.17.0 Unknown.
	 *
	 * @return string
	 */
	public function get_video() {

		$html  = '';
		$embed = $this->get( 'video_src' );

		if ( $embed ) {

			// Get oembed.
			$html = wp_oembed_get( $embed );

			// Fallback to video shortcode.
			if ( ! $html ) {
				$html = do_shortcode( '[video src="' . $embed . '"]' );
			}
		}


Top ↑

Changelog Changelog

Changelog
Version Description
3.17.0 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.