Languages: English • 日本語 (Add your language)
Update attachment file path based on attachment ID.
Used to update the file path of the attachment, which uses post meta name '_wp_attached_file' to store the path of the attachment.
Note: This does not move the file. This simply updates the '_wp_attached_file' post meta after a move.
<?php update_attached_file( $attachment_id, $file ) ?>
Since: 2.1.0
update_attached_file() is located in wp-includes/post.php