WPDev.one
Core Class

WP_Widget_Media_Gallery

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

Core class that implements a gallery widget.

Methods 6 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
enqueue_admin_scripts()
void

Loads the required media files for the media manager and scripts for media widgets.

render_control_template_scripts()
void

Render form template scripts.

has_content()
bool

Whether the widget has content to show.

Parameters: $instance: mixed

Class Information

Since Version
4.9.0
Source File
wp-includes/widgets/class-wp-widget-media-gallery.php
Advertisement