wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_create_file_in_uploads › WordPress过滤钩子

Since2.1.0
已弃用n/a
apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id )
参数: (2)
  • (string) $file Path to the file.
    Required: Yes
  • (int) $attachment_id Attachment ID.
    Required: Yes
定义在:
文档:

Filters the attachment file path after the custom header or background image is set.

Used for file replication.





源码

$file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.