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



trash_comment › Les Actions WordPress

Depuis4.9.0
Dépréciéen/a
do_action( 'trash_comment', $comment->comment_ID, $comment )
Paramètres: (2)
  • (string) $comment_id The comment ID as a numeric string.
    Requis: Oui
  • (WP_Comment) $comment The comment to be trashed.
    Requis: Oui
Défini(e) dans:
Codex:

Fires immediately before a comment is sent to the Trash.





Source

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