spammed_comment хук-событие . WP 2.9.0
Fires immediately after a comment is marked as Spam.
Использование
add_action( 'spammed_comment', 'action_function_name_5026', 10, 2 ); function action_function_name_5026( $comment_id, $comment ){ // action... }
- $comment_id(число)
- The comment ID.
- $comment(WP_Comment)
- The comment marked as spam.
Список изменений
С версии 2.9.0 | Введена. |
С версии 4.9.0 | Added the $comment parameter. |
Где вызывается хук
spammed_comment
wp-includes/comment.php 1679
do_action( 'spammed_comment', $comment->comment_ID, $comment );