widget_{$this->id_base}_instance WordPress Filter Hook

The {$this->id_base}_instance hook is fired when a widget of the {$this->id_base} base type is instantiated.

apply_filters( "widget_{$this->id_base}_instance", array $instance, array $args, WP_Widget_Media $widget ) #

Filters the media widget instance prior to rendering the media.


Parameters

$instance

(array)Instance data.

$args

(array)Widget args.

$widget

(WP_Widget_Media)Widget object.


Top ↑

Source

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

View on Trac



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.