max_srcset_image_width

max_srcset_image_width

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('max_srcset_image_width') is found 1 times:

  • /wp-includes/media.php line 1419
    1415
    1416
    1417
    1418
    1419
    1420
    1421
    1422
    1423
    1424
    1425
    *     @type int $0 The width in pixels.
     *     @type int $1 The height in pixels.
     * }
     */
    $max_srcset_image_width = apply_filters( 'max_srcset_image_width', 2048, $size_array );
     
    // Array to hold URL candidates.
    $sources = array();
     
    /**
     * To make sure the ID matches our image src, we will check to see if any sizes in our attachment

See this hook used in plugins: