widget_{$this->id_base}_instance_schema

widget_{$this->id_base}_instance_schema

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('widget_{$this->id_base}_instance_schema') is found 2 times:

  • /wp-includes/widgets/class-wp-widget-media-gallery.php line 101
    			),
    		);
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-media.php */
    		$schema = apply_filters( "widget_{$this->id_base}_instance_schema", $schema, $this );
    
    		return $schema;
    	}
    
    	/**
    	 * Render the media on the frontend.
    
  • /wp-includes/widgets/class-wp-widget-media.php line 172
    		 *
    		 * @param array           $schema Instance schema.
    		 * @param WP_Widget_Media $widget Widget object.
    		 */
    		$schema = apply_filters( "widget_{$this->id_base}_instance_schema", $schema, $this );
    
    		return $schema;
    	}
    
    	/**
    	 * Determine if the supplied attachment is for a valid attachment post with the specified MIME type.