Core Function
View Source on Trac ↗ _copy_image_file()
_copy_image_file( mixed $attachment_id ) Copies an existing image file.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $attachment_id int | Attachment ID. Required |
Return Value
((string)
| false) New file path on success, false on failure.
Function Information
Since Version
3.4.0
Source File
wp-admin/includes/image.php
Advertisement