WordPress at a glance
filter is not described

widget_(id_base)_instance_schema filter-hook . WP 4.9.0

Filters the media widget instance schema to add additional properties.

Usage

add_filter( 'widget_(id_base)_instance_schema', 'filter_function_name_6586', 10, 2 );
function filter_function_name_6586( $schema, $this ){
	// filter...

	return $schema;
}
$schema(array)
Instance schema.
$this(WP_Widget_Media)
Widget object.

Список изменений

С версии 4.9.0 Введена.

Где вызывается хук

WP_Widget_Media::get_instance_schema()
widget_(id_base)_instance_schema
WP_Widget_Media_Gallery::get_instance_schema()
widget_(id_base)_instance_schema
wp-includes/widgets/class-wp-widget-media.php 167
$schema = apply_filters( "widget_{$this->id_base}_instance_schema", $schema, $this );
wp-includes/widgets/class-wp-widget-media-gallery.php 101
$schema = apply_filters( "widget_{$this->id_base}_instance_schema", $schema, $this );

Где используется хук в ядре WordPress

Использование не найдено.