BP_Akismet::update_activity_history( int $activity_id, string $message = '', string $event = '' )

Update an activity item’s Akismet history.


Parameters Parameters

$activity_id

(int) (Required) Activity item ID.

$message

(string) (Optional) Human-readable description of what's changed.

Default value: ''

$event

(string) (Optional) The type of check we were carrying out.

Default value: ''


Source 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 );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.