BP_Akismet::history_metabox( object $item )
History meta box for the Activity admin edit screen.
Description Description
See also See also
Parameters Parameters
- $item
-
(Required) Activity item.
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 — %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>'; }
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |