wpseek.com
A WordPress-centric search engine for devs and theme authors



delete_comment › WordPress Action Hooks

Since4.9.0
Deprecatedn/a
› do_action( 'delete_comment', $comment->comment_ID, $comment )
Parameters: (2)
  • () comment_id The comment ID as a numeric string.
    Required: Yes
  • () comment The comment to be deleted.
    Required: Yes
Defined at:
Codex:

Fires immediately before a comment is deleted from the database.





Source

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