BP_Akismet::get_activity_history( int $activity_id )

Get an activity item’s Akismet history.

Description

Parameters

$activity_id

(Required) Activity item ID.

Return

(array) The activity item's Akismet history.

Source

File: bp-activity/classes/class-bp-akismet.php

	public function get_activity_history( $activity_id = 0 ) {
		$history = bp_activity_get_meta( $activity_id, '_bp_akismet_history' );
		if ( $history === false )
			$history = array();

		// Sort it by the time recorded.
		usort( $history, 'akismet_cmp_time' );

		return $history;
	}

Changelog

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.