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:

Description

Moves comments for a post to the trash.

Related Functions

wp_untrash_post_comments, wp_trash_comment, wp_untrash_comment, wp_trash_post, wp_list_comments

Top Google Results

User discussions

wpseek mobile