Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | apply_filters | 969 | /** * 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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
bool | $supports_trash | Whether the comment supports trashing. |
WP_Comment | $comment | The comment object being considered for trashing support. |