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.
Source
Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |