BP_Akismet::get_activity_history( int $activity_id )

Get an activity item’s Akismet history.


Description Description


Parameters Parameters

$activity_id

(Required) Activity item ID.


Top ↑

Return Return

(array) The activity item's Akismet history.


Top ↑

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

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.