wp_edited_image_metadata

wp_edited_image_metadata

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_edited_image_metadata') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php line 734
    		 * @param array $new_image_meta    Meta data for the new image.
    		 * @param int   $new_attachment_id Attachment post ID for the new image.
    		 * @param int   $attachment_id     Attachment post ID for the edited (parent) image.
    		 */
    		$new_image_meta = apply_filters( 'wp_edited_image_metadata', $new_image_meta, $new_attachment_id, $attachment_id );
    
    		wp_update_attachment_metadata( $new_attachment_id, $new_image_meta );
    
    		$response = $this->prepare_item_for_response( get_post( $new_attachment_id ), $request );
    		$response->set_status( 201 );
    		$response->header( 'Location', rest_url( sprintf( '%s/%s/%s', $this->namespace, $this->rest_base, $new_attachment_id ) ) );