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.


Top ↑

Source

File: wp-includes/widgets/class-wp-widget-media.php

	abstract public function render_media( $instance );


Top ↑

Changelog

Changelog
VersionDescription
4.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.