Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_comment_trashable ›

Da4.7.0
Deprecaton/a
apply_filters( 'rest_comment_trashable', ( EMPTY_TRASH_DAYS > 0 )
Parametri: (2)
  • (bool) $supports_trash Whether the post type support trashing.
    Richiesto:
  • (WP_Post) $comment The comment object being considered for trashing support.
    Richiesto:
Definito a:
Codex:

Filters whether a comment can be trashed.

Return false to disable trash support for the post.





Sorgenti

$supports_trash = apply_filters( 'rest_comment_trashable', ( EMPTY_TRASH_DAYS > 0 ), $comment );