Description
Filters whether a comment can be trashed via the REST API. Return false to disable trash support for the comment.
Occurrences
Filename | Line Number |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | 970 |
Parameters
Type | Name | Description |
---|---|---|
bool | $supports_trash | Whether the comment supports trashing. |
WP_Comment | $comment | The comment object being considered for trashing support. |
PHP Doc
/**
* Filters whether a comment can be trashed via the REST API.
*
* Return false to disable trash support for the comment.
*
* @since 4.7.0
*
* @param bool $supports_trash Whether the comment supports trashing.
* @param WP_Comment $comment The comment object being considered for trashing support.
*/