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



wp_image_file_matches_image_meta › WordPress过滤钩子

Since5.5.0
已弃用n/a
› apply_filters( 'wp_image_file_matches_image_meta', $match, $image_location, $image_meta, $attachment_id )
参数: (4)
  • () match Whether the image relative path from the image meta matches the end of the URI or path to the image file.
    Required: Yes
  • () image_location Full path or URI to the tested image file.
    Required: Yes
  • () image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
    Required: Yes
  • () attachment_id The image attachment ID or 0 if not supplied.
    Required: Yes
定义在:
文档:

Filters whether an image path or URI matches image meta.





源码

return apply_filters( 'wp_image_file_matches_image_meta', $match, $image_location, $image_meta, $attachment_id );