wp_create_file_in_uploads

過濾鉤子
apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id )

在設定自定義頁首或背景圖片後過濾附件檔案路徑。

用於檔案複製。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.
$file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.
$file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.

常見問題

FAQs
檢視更多 >