WordPress开发者和主题制作者的搜索引擎



intermediate_image_sizes_advanced ›

Since5.1.0
已弃用n/a
apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $attachment_id )
参数: (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
定义在:
文档:

Filters the image sizes automatically generated when uploading an image.





源码

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