wpseek.com
A WordPress-centric search engine for devs and theme authors



intermediate_image_sizes_advanced › WordPress Filter Hooks

Since5.3.0
Deprecatedn/a
apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id )
Parameters: (3)
  • (array) $new_sizes Associative array of image sizes to be created.
    Required: Yes
  • (array) $image_meta The image meta data: width, height, file, sizes, etc.
    Required: Yes
  • (int) $attachment_id The attachment post ID for the image.
    Required: Yes
Defined at:
Codex:

Filters the image sizes automatically generated when uploading an image.





Source

$new_sizes = apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id );