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



image_downsize › WordPress过滤钩子

Since2.5.0
已弃用n/a
› apply_filters( 'image_downsize', false, $id, $size )
参数: (3)
  • () downsize Whether to short-circuit the image downsize.
    Required: Yes
  • () id Attachment ID for image.
    Required: Yes
  • () 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 whether to preempt the output of image_downsize().

Returning a truthy value from the filter will effectively short-circuit down-sizing the image, returning that value instead.




源码

$out = apply_filters( 'image_downsize', false, $id, $size );