max_srcset_image_width

Advertisement

Summery Summery

Filters the maximum image width to be included in a ‘srcset’ attribute.

Syntax Syntax

apply_filters( 'max_srcset_image_width', int $max_width, int[] $size_array )

Parameters Parameters

$max_width

The maximum image width to be included in the 'srcset'. Default '2048'.

$size_array

An array of requested width and height values.

  • (int) The width in pixels.
  • '1'
    (int) The height in pixels.

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply