Filters the media widget instance prior to rendering the media.
WP_Widget_Media::widget
Displays the widget on the front-end.
WP_Widget_Media::sanitize_token_list
Sanitize a token list string, such as used in HTML rel and class attributes.
WP_Widget_Media::is_attachment_with_mime_type
Determine if the supplied attachment is for a valid attachment post with the specified MIME type.
Advertisement
WP_Widget_Media::get_instance_schema
Get schema for properties of a widget instance (item).
WP_Widget_Media::_register_one
Add hooks while registering all widget instances of this widget class.
WP_Widget_Media::__construct
Constructor.
WP_Widget_Media
Core class that implements a media widget.
Advertisement
WP_Widget_Media_Video::render_control_template_scripts
Render form template scripts.
WP_Widget_Media_Video::enqueue_admin_scripts
Loads the required scripts and styles for the widget control.
WP_Widget_Media_Video::enqueue_preview_scripts
Enqueue preview scripts.
WP_Widget_Media_Video::inject_video_max_width_style
Inject max-width and remove height for videos too constrained to fit inside sidebars on frontend.
Advertisement
WP_Widget_Media_Video::render_media
Render the media on the frontend.
WP_Widget_Media_Video::get_instance_schema
Get schema for properties of a widget instance (item).
WP_Widget_Media_Video::__construct
Constructor.