You appear to be a bot. Output may be restricted
Description
Log an event for a given comment, storing it in comment_meta.
Usage
Akismet::update_comment_history( $comment_id, $message, $event, $meta );
Parameters
- $comment_id
- ( int ) required – The ID of the relevant comment.
- $message
- ( string ) required – The string description of the event. No longer used.
- $event
- ( string ) optional – The event code.
- $meta
- ( array ) optional – Metadata about the history entry. e.g., the user that reported or changed the status of a given comment.
Returns
void
Source
File name: akismet/class.akismet.php
Lines:
1 to 21 of 21
public static function update_comment_history( $comment_id, $message, $event=null, $meta=null ) { global $current_user; $user = ''; $event = array( 'time' => self::_get_microtime(), 'event' => $event, ); if ( is_object( $current_user ) && isset( $current_user->user_login ) ) { $event['user'] = $current_user->user_login; } if ( ! empty( $meta ) ) { $event['meta'] = $meta; } // $unique = false so as to allow multiple values per comment $r = add_comment_meta( $comment_id, 'akismet_history', $event, false ); }