LLMS_Question::get_video()
Retrieve video embed for question featured video
Return Return
(string)
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 . '"]' ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.0 | Unknown. |
3.16.0 | Introduced. |