BP_Akismet::update_activity_history( int $activity_id, string $message = '', string $event = '' )
Update an activity item’s Akismet history.
Description
Parameters
- $activity_id
-
(Required) Activity item ID.
- $message
-
(Optional) Human-readable description of what's changed.
Default value: ''
- $event
-
(Optional) The type of check we were carrying out.
Default value: ''
Source
File: bp-activity/classes/class-bp-akismet.php
public function update_activity_history( $activity_id = 0, $message = '', $event = '' ) {
$event = array(
'event' => $event,
'message' => $message,
'time' => Akismet::_get_microtime(),
'user' => bp_loggedin_user_id(),
);
// Save the history data.
bp_activity_update_meta( $activity_id, '_bp_akismet_history', $event );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.