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



load_image_to_edit_attachmenturl › WordPress过滤钩子

Since3.1.0
已弃用n/a
› apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id )
参数: (3)
  • () image_url Current image URL.
    Required: Yes
  • () attachment_id Attachment ID.
    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 the path to an attachment's URL when editing the image.

The filter is only evaluated if the file isn't stored locally and `allow_url_fopen` is enabled on the server.




源码

$filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size );