wp_create_file_in_uploads
wp_create_file_in_uploads
Appears in: advanced-custom-fields.5.10, advanced-custom-fields.5.10.1, advanced-custom-fields.5.10.2, advanced-custom-fields.5.12, advanced-custom-fields.5.12.1, advanced-custom-fields.5.12.2, advanced-custom-fields.5.12.3, advanced-custom-fields.5.7.10, advanced-custom-fields.5.7.12, advanced-custom-fields.5.7.6, advanced-custom-fields.5.7.7, advanced-custom-fields.5.7.8, advanced-custom-fields.5.7.9, advanced-custom-fields.5.8.0, advanced-custom-fields.5.8.1, advanced-custom-fields.5.8.11, advanced-custom-fields.5.8.12, advanced-custom-fields.5.8.13, advanced-custom-fields.5.8.14, advanced-custom-fields.5.8.2, advanced-custom-fields.5.8.3, advanced-custom-fields.5.8.5, advanced-custom-fields.5.8.7, advanced-custom-fields.5.8.8, advanced-custom-fields.5.8.9, advanced-custom-fields.5.9.0, advanced-custom-fields.5.9.1, advanced-custom-fields.5.9.3, advanced-custom-fields.5.9.4, advanced-custom-fields.5.9.5, advanced-custom-fields.5.9.6, advanced-custom-fields.5.9.7, advanced-custom-fields.5.9.8, advanced-custom-fields.5.9.9, advanced-custom-fields.6.0.2, advanced-custom-fields.6.0.3, advanced-custom-fields.6.0.4, advanced-custom-fields.6.0.5, advanced-custom-fields.6.0.6, advanced-custom-fields.6.0.7, advanced-custom-fields.6.1.4, advanced-custom-fields.6.1.6, advanced-custom-fields.6.1.7, advanced-custom-fields.6.2.0, advanced-custom-fields.6.2.1, advanced-custom-fields.6.2.2, advanced-custom-fields.6.2.3, advanced-custom-fields.6.2.4, advanced-custom-fields.6.2.6.1, advanced-custom-fields.6.2.7, advanced-custom-fields.6.2.9, advanced-custom-fields.6.3.1, advanced-custom-fields.6.3.10.2, advanced-custom-fields.6.3.2, advanced-custom-fields.6.3.3, advanced-custom-fields.6.3.5, advanced-custom-fields.6.3.6, advanced-custom-fields.6.3.6.3, wordpress-4.0, wordpress-4.4, wordpress-4.8, wordpress-4.9, wordpress-4.9.4, wordpress-4.9.5, wordpress-4.9.6, wordpress-4.9.7, wordpress-4.9.8, wordpress-5.0, wordpress-5.0.1, wordpress-5.0.2, wordpress-5.0.3, wordpress-5.1, wordpress-5.1.1, wordpress-5.2, wordpress-5.2.1, wordpress-5.2.2, wordpress-5.2.3, wordpress-5.2.4, wordpress-5.3, wordpress-5.3.1, wordpress-5.3.2, wordpress-5.4, wordpress-5.4.1, wordpress-5.4.2, wordpress-5.5, wordpress-5.5.1, wordpress-5.5.2, wordpress-5.5.3, wordpress-5.6, wordpress-5.6.1, wordpress-5.6.2, wordpress-5.7, wordpress-5.7.1, wordpress-5.7.2, wordpress-5.8, wordpress-5.8.1, wordpress-5.8.2, wordpress-5.8.3, wordpress-5.9, wordpress-5.9.1, wordpress-5.9.2, wordpress-5.9.3, wordpress-6.0, wordpress-6.0.1, wordpress-6.0.2, wordpress-6.0.3, wordpress-6.1, wordpress-6.1.1, wordpress-6.2, wordpress-6.2.1, wordpress-6.2.2, wordpress-6.3, wordpress-6.3.1, wordpress-6.3.2, wordpress-6.4, wordpress-6.4.1, wordpress-6.4.2, wordpress-6.4.3, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7
Hook Type: action
Displaying hooks found in version: wordpress-6.7do_action('wp_create_file_in_uploads') is found 7 times:
- /wp-admin/includes/ajax-actions.php line 4043
break; } /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. // Copy attachment properties. $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, $context ); // Update the attachment. add_filter( 'intermediate_image_sizes_advanced', array( $wp_site_icon, 'additional_sizes' ) );
- /wp-admin/includes/ajax-actions.php line 4072
*/ do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped ); /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. // Copy attachment properties. $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, $context ); $attachment_id = wp_insert_attachment( $attachment, $cropped ); $metadata = wp_generate_attachment_metadata( $attachment_id, $cropped );
- /wp-admin/includes/class-custom-background.php line 578
$thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); set_theme_mod( 'background_image_thumb', sanitize_url( $thumbnail[0] ) ); /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $file = apply_filters( 'wp_create_file_in_uploads', $file, $id ); // For replication. $this->updated = true; } /** * Handles Ajax request for adding custom background context to an attachment.
- /wp-admin/includes/class-custom-image-header.php line 896
* * @param string $file Path to the file. * @param int $attachment_id Attachment ID. */ $file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication. return $this->finished(); } elseif ( $width > $max_width ) { $oitar = $width / $max_width; $image = wp_crop_image(
- /wp-admin/includes/class-custom-image-header.php line 919
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); } /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication. $url = str_replace( wp_basename( $url ), wp_basename( $image ), $url ); $width = $width / $oitar; $height = $height / $oitar; } else { $oitar = 1;
- /wp-admin/includes/class-custom-image-header.php line 1078
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); } /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, 'custom-header' ); if ( ! empty( $_POST['create-new-attachment'] ) ) { unset( $attachment['ID'] ); }
- /wp-admin/includes/class-custom-image-header.php line 1424
wp_send_json_error( array( 'message' => __( 'Image could not be processed. Please go back and try again.' ) ) ); } /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, 'custom-header' ); $previous = $this->get_previous_crop( $attachment ); if ( $previous ) {