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



intermediate_image_sizes_advanced ›

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

Filters the image sizes automatically generated when uploading an image.





源码

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