WordPress at a glance
filter is not described

rest_comment_trashable filter-hook . WP 4.7.0

Filters whether a comment can be trashed.

Return false to disable trash support for the post.


add_filter( 'rest_comment_trashable', 'filter_function_name_1474', 10, 2 );
function filter_function_name_1474( $supports_trash, $comment ){
	// filter...

	return $supports_trash;
Whether the post type support trashing.
The comment object being considered for trashing support.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 825
$supports_trash = apply_filters( 'rest_comment_trashable', ( EMPTY_TRASH_DAYS > 0 ), $comment );

Where the hook is used (in WP core)

Использование не найдено.