BBP_Akismet::history_metabox()
Output for Akismet History metabox
Description
Source
File: bp-forums/extend/akismet.php
public function history_metabox() { // Post ID $history = $this->get_post_history( get_the_ID() ); ?> <div class="akismet-history" style="margin: 13px 0;"> <?php if ( !empty( $history ) ) : ?> <table> <tbody> <?php foreach ( $history as $row ) : ?> <tr> <td style="color: #999; text-align: right; white-space: nowrap;"> <span title="<?php echo esc_attr( date( 'D d M Y @ h:i:m a', $row['time'] ) . ' GMT' ); ?>"> <?php bbp_time_since( $row['time'], false, true ); ?> </span> </td> <td style="padding-left: 5px;"> <?php echo esc_html( $row['message'] ); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php else : ?> <p><?php esc_html_e( 'No recorded history. Akismet has not checked this post.', 'buddyboss' ); ?></p> <?php endif; ?> </div> <?php }
Changelog
Version | Description |
---|---|
bbPress (r5049) | 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.