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



load_image_to_edit › WordPress过滤钩子

Since2.9.0
已弃用n/a
apply_filters( 'load_image_to_edit', $image, $attachment_id, $size )
参数: (3)
  • (resource|GdImage) $image Current image.
    Required: Yes
  • (int) $attachment_id Attachment ID.
    Required: Yes
  • (string|int[]) $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
定义在:
文档:

Filters the current image being loaded for editing.





源码

$image = apply_filters( 'load_image_to_edit', $image, $attachment_id, $size );