Core Function
View Source on Trac ↗ wp_trash_post_comments()
wp_trash_post_comments( mixed $post = null ) Moves comments for a post to 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
((mixed)
| void) False on failure.
Function Information
Since Version
2.9.0
Source File
wp-includes/post.php
Advertisement