gallery_widget_content_width, self::DEFAULT_WIDTH, $args, $instance

gallery_widget_content_width, self::DEFAULT_WIDTH, $args, $instance

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('gallery_widget_content_width, self::DEFAULT_WIDTH, $args, $instance') is found 1 times:

  • /modules/widgets/gallery.php line 143
    		 * @param int self::DEFAULT_WIDTH Default gallery width. Default is 265.
    		 * @param string $args Display arguments including before_title, after_title, before_widget, and after_widget.
    		 * @param array $instance The settings for the particular instance of the widget.
    		 */
    		$this->instance_width = apply_filters( 'gallery_widget_content_width', self::DEFAULT_WIDTH, $args, $instance );
    
    		// Register a filter to modify the tiled_gallery_content_width, so Jetpack_Tiled_Gallery
    		// can appropriately size the tiles.
    		add_filter( 'tiled_gallery_content_width', array( $this, 'tiled_gallery_content_width' ) );
    
    		if ( method_exists( $this, $method ) ) {