wp_trash_post_comments
wp_trash_post_comments ( $post = null )
Parameters:- (int|WP_Post|null) post Optional. Post ID or post object. Defaults to global $post.
Returns:- (mixed|void) False on failure.
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Moves comments for a post to the Trash.