load_image_to_edit_attachmenturl
apply_filters( ‘load_image_to_edit_attachmenturl’, string $image_url , string $attachment_id , string $size )
过滤器::如果不在本地文件系统中,则过滤图像URL。
Filter Hook: Filters the image URL if not in the local filesystem.
说明(Description)
只有在服务器上启用fopen时才会计算筛选器。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$image_url | (string) | 当前图像URL。 |
$attachment_id | (string) | 附件ID。 |
$size | (string) | 图像的大小。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.1.0 | wp-admin/includes/image.php:1007 | 1 | 0 |
load_image_to_edit_attachmenturl 为WP2原创文章,链接:https://www.wp2.cn/hook/load_image_to_edit_attachmenturl/