wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_comment_trashable › Filtr WordPress Hooks

Od4.7.0
Przestarzałyn/a
apply_filters( 'rest_comment_trashable', ( EMPTY_TRASH_DAYS > 0 )
Parametry: (2)
  • (bool) $supports_trash Whether the comment supports trashing.
    Wymagane: Tak
  • (WP_Comment) $comment The comment object being considered for trashing support.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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

Return false to disable trash support for the comment.





Źródło

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