wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



trash_comment › WordPress Action Hooks

Seit4.9.0
Veraltetn/v
do_action( 'trash_comment', $comment->comment_ID, $comment )
Parameter: (2)
  • (string) $comment_id The comment ID as a numeric string.
    Erforderlich: Ja
  • (WP_Comment) $comment The comment to be trashed.
    Erforderlich: Ja
Definiert in:
Codex:

Fires immediately before a comment is sent to the Trash.





Quellcode

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