wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_comment_trashable › Les Filtres WordPress

Depuis4.7.0
Dépréciéen/a
apply_filters( 'rest_comment_trashable', ( EMPTY_TRASH_DAYS > 0 )
Paramètres: (2)
  • (bool) $supports_trash Whether the comment supports trashing.
    Requis: Oui
  • (WP_Comment) $comment The comment object being considered for trashing support.
    Requis: Oui
Défini(e) dans:
Codex:

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

Return false to disable trash support for the comment.





Source

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