BP_Akismet::history_metabox( object $item )

History meta box for the Activity admin edit screen.


Description Description

See also See also


Top ↑

Parameters Parameters

$item

(Required) Activity item.


Top ↑

Source Source

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

	function history_metabox( $item ) {
		$history = BP_Akismet::get_activity_history( $item->id );

		if ( empty( $history ) )
			return;

		echo '<div class="akismet-history"><div>';
		printf( _x( '%1$s &mdash; %2$s', 'x hours ago - akismet cleared this item', 'buddypress' ), '<span>' . bp_core_time_since( $history[2] ) . '</span>', esc_html( $history[1] ) );
		echo '</div></div>';
	}

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.