apply_filters( 'intermediate_image_sizes_advanced', array $sizes, array $metadata, int $attachment_id )

Filters the image sizes automatically generated when uploading an image.


Description Description


Parameters Parameters

$sizes

(array) An associative array of image sizes.

$metadata

(array) An associative array of image metadata: width, height, file.

$attachment_id

(int) Current attachment ID.


Top ↑

Source Source

File: wp-admin/includes/image.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
5.1.0 Added the $attachment_id argument.
4.4.0 Added the $metadata argument.
2.9.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.