rest_comment_trashable

SummerySummery

Filters whether a comment can be trashed.

Syntax

apply_filters( 'rest_comment_trashable', bool $supports_trash, WP_Post $comment )

DescriptionDescription

Return false to disable Trash support for the post.

ParametersParameters

$supports_trash

(bool) Whether the post type support trashing.

$comment

(WP_Post) The comment object being considered for trashing support.

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top