wp_restore_image
wp_restore_image ( $post_id )
Parameters:- (int) post_id Attachment post ID.
Returns:- (stdClass) Image restoration message object.
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Restores the metadata for a given attachment.