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, 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
Hook Type: action
Displaying hooks found in version: wordpress-6.3.1do_action('wp_create_file_in_uploads') is found 5 times:
- /wp-admin/includes/ajax-actions.php line 4017
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. $attachment = $wp_site_icon->create_attachment_object( $cropped, $attachment_id ); unset( $attachment['ID'] ); // Update the attachment. add_filter( 'intermediate_image_sizes_advanced', array( $wp_site_icon, 'additional_sizes' ) ); $attachment_id = $wp_site_icon->insert_attachment( $attachment, $cropped );
- /wp-admin/includes/ajax-actions.php line 4045
*/ 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. $parent_url = wp_get_attachment_url( $attachment_id ); $parent_basename = wp_basename( $parent_url ); $url = str_replace( $parent_basename, wp_basename( $cropped ), $parent_url ); $size = wp_getimagesize( $cropped );
- /wp-admin/includes/class-custom-image-header.php line 908
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 1067
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 = $this->create_attachment_object( $cropped, $attachment_id ); if ( ! empty( $_POST['create-new-attachment'] ) ) { unset( $attachment['ID'] ); }
- /wp-admin/includes/class-custom-image-header.php line 1411
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 = $this->create_attachment_object( $cropped, $attachment_id ); $previous = $this->get_previous_crop( $attachment ); if ( $previous ) {