wp_create_file_in_uploads

动作钩子


do_action( 'wp_create_file_in_uploads', $file, $attachment_id )
参数
  • (string)
    $file
    Path to the file.
    Required:
  • (int)
    $attachment_id
    Attachment ID.
    Required:
定义位置
  • wp-admin/includes/class-custom-image-header.php
    , line 879
引入
2.1.0
弃用

Fires after the header image is set or an error is returned.

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