image_editor_default_mime_type

過濾鉤子
apply_filters( 'image_editor_default_mime_type', $this->default_mime_type )

image_editor_default_mime_type。這個鉤子允許你在使用WordPress圖片編輯器編輯圖片時設定預設的MIME型別。MIME型別用於確定影象的格式,可以設定為任何支援的影象格式(如PNG、JPEG等)。

在獲取副檔名之前過濾預設mime型別。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$mime_type = apply_filters( 'image_editor_default_mime_type', $this->default_mime_type );
$mime_type = apply_filters( 'image_editor_default_mime_type', $this->default_mime_type );
$mime_type = apply_filters( 'image_editor_default_mime_type', $this->default_mime_type );

常見問題

FAQs
檢視更多 >