WP_Widget_Media::render_media() WordPress Method
The WP_Widget_Media::render_media() method is used to display media attached to a widget instance. This method is called by the display() method.
WP_Widget_Media::render_media( array $instance ) #
Render the media on the frontend.
Parameters
- $instance
(array)(Required)Widget instance props.
Source
File: wp-includes/widgets/class-wp-widget-media.php
abstract public function render_media( $instance );
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |