WPDev.one
Core Function
View Source on Trac ↗

wp_restore_image()

wp_restore_image( mixed $post_id )

Restores the metadata for a given attachment.

Parameters 1 required

Name / Type Description
$post_id
int

Attachment post ID.

Required

Return Value

(stdClass)
Image restoration message object.

Function Information

Since Version
2.9.0
Source File
wp-admin/includes/image-edit.php
Advertisement