wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_comment_trashable › WordPress Filter Hooks

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

Filters whether a comment can be trashed via the REST API.

Return false to disable trash support for the comment.





Sorgenti

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