WPDev.one
Core Class

WP_Widget_Media_Video

class WP_Widget_Media_Video // Constructor: function Object() { [native code] }

Core class that implements a video widget.

Methods 7 methods

Method / Return Description
__construct()
void

Constructor.

get_instance_schema()
array

Get schema for properties of a widget instance (item).

render_media()
void

Render the media on the frontend.

Parameters: $instance: mixed
inject_video_max_width_style()
string

Inject max-width and remove height for videos too constrained to fit inside sidebars on frontend.

Parameters: $html: mixed
enqueue_preview_scripts()
void

Enqueue preview scripts.

enqueue_admin_scripts()
void

Loads the required scripts and styles for the widget control.

render_control_template_scripts()
void

Render form template scripts.

Class Information

Since Version
4.8.0
Source File
wp-includes/widgets/class-wp-widget-media-video.php
Advertisement