WPDev.one
Core Function
View Source on Trac ↗

wp_untrash_post_comments()

wp_untrash_post_comments( mixed $post = null )

Restores comments for a post from the Trash.

Parameters 1 required

Name / Type Description
(int

| WP_Post | null) $post Optional. Post ID or post object. Defaults to global $post.

Required

Return Value

((true)
| void)

Function Information

Since Version
2.9.0
Source File
wp-includes/post.php
Advertisement