wp_create_file_in_uploads action-hook . WP 2.1.0
Fires after the header image is set or an error is returned.
Usage
add_action( 'wp_create_file_in_uploads', 'action_function_name_1693', 10, 2 ); function action_function_name_1693( $file, $attachment_id ){ // action... }
- $file(string)
- Path to the file.
- $attachment_id(int)
- Attachment ID.
Where the hook is called
wp_create_file_in_uploads
wp_create_file_in_uploads
wp_create_file_in_uploads
wp_create_file_in_uploads
wp_create_file_in_uploads
wp-admin/custom-header.php 776
do_action( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication
wp-admin/includes/ajax-actions.php 3259
$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication.
wp-admin/includes/ajax-actions.php 3288
$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication.
wp-admin/custom-background.php 485
do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication
wp-admin/custom-header.php 786
$image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication
wp-admin/custom-header.php 922
$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication
wp-admin/custom-header.php 1252
$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication