load_image_to_edit_filesystempath

過濾鉤子
apply_filters( 'load_image_to_edit_filesystempath', $filepath, $attachment_id, $size )
引數
  • (string) $path Path to the current image.
    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_edit_pathload_image_to_editload_image_to_edit_attachmenturlwp_save_image_editor_fileget_block_file_template
相關方法
_load_image_to_edit_pathload_image_to_editget_filesystem_methodupload_size_limit_filterget_block_file_templateget_theme_file_path
引入
3.1.0
棄用
-

load_image_to_edit_filesystempath: 這個函式根據附件的ID,返回附件的檔案系統路徑。它用於生成在媒體庫中正在編輯的影象的檔案路徑。

編輯影象時過濾附件檔案的路徑。

將針對除“full”以外的所有影象大小評估過濾器。

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

常見問題

FAQs
檢視更多 >