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



wp_image_src_get_dimensions › WordPress过滤钩子

Since5.7.0
已弃用n/a
› apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id )
参数: (4)
  • () dimensions Array with first element being the width and second element being the height, or false if dimensions could not be determined.
    Required: Yes
  • () image_src The image source file.
    Required: Yes
  • () image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
    Required: Yes
  • () attachment_id The image attachment ID. Default 0.
    Required: Yes
定义在:
文档:

Filters the wp_image_src_get_dimensions() value.





源码

return apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id );