Core Function
View Source on Trac ↗ wp_save_image()
wp_save_image( mixed $post_id ) Saves image to post, along with enqueued changes
Parameters 1 required
| Name / Type | Description |
|---|---|
| $post_id int | Attachment post ID. Required |
Return Value
(stdClass)
stdClass
Function Information
Since Version
2.9.0
Source File
wp-admin/includes/image-edit.php
Advertisement