load_image_to_edit_path

過濾鉤子
apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size )
引數
  • (string|false) $filepath File path or URL to current image, or false.
    Required:
  • (int) $attachment_id Attachment ID.
    Required:
  • (string|int[]) $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:
定義位置
相關勾子
load_image_to_editload_image_to_edit_filesystempathload_image_to_edit_attachmenturlwp_read_image_metadataimage_editor_output_format
相關方法
_load_image_to_edit_pathload_image_to_editwp_image_editor_supportsget_image_send_to_editorformat_to_editwp_image_editor
引入
2.9.0
棄用
-

load_image_to_edit_path: 這個函式結合了load_image_to_edit_filesystempath和load_image_to_edit_attachmenturl函式,根據附件的ID返回附件的檔案路徑和URL。

過濾當前影象的返回路徑或URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size );
return apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size );
return apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size );

常見問題

FAQs
檢視更多 >