Uma área de pesquisa sobre o WordPress para devs e autores do tema



delete_comment ›

Desde4.9.0
Obsoleton/a
do_action( 'delete_comment', $comment->comment_ID, $comment )
Parâmetros: (2)
  • (int) $comment_id The comment ID.
    Required: Yes
  • (WP_Comment) $comment The comment to be deleted.
    Required: Yes
Definido em:
Codex:

Fires immediately before a comment is deleted from the database.





Fonte

do_action( 'delete_comment', $comment->comment_ID, $comment );