A WordPress-centric search engine for devs and theme authors



intermediate_image_sizes_advanced ›

Since5.0.0
Deprecatedn/a
apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $attachment_id )
Parameters: (3)
  • (array) $sizes An associative array of image sizes.
    Required: Yes
  • (array) $metadata An associative array of image metadata: width, height, file.
    Required: Yes
  • (int) $attachment_id Current attachment ID.
    Required: Yes
Defined at:
Codex:

Filters the image sizes automatically generated when uploading an image.





Source

$sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $attachment_id );