
WordPress React开发项目初学者指南
apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size )
load_image_to_edit_path: 这个函数结合了load_image_to_edit_filesystempath和load_image_to_edit_attachmenturl函数,根据附件的ID返回附件的文件路径和URL。
过滤当前图像的返回路径或URL。
return apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size );