BBP_Akismet::get_post_history( int $post_id )
Get the Akismet history of a Post
Description Description
Parameters Parameters
- $post_id
-
(Required)
Return Return
(array) Array of Akismet history
Source Source
File: includes/extend/akismet.php
public function get_post_history( $post_id = 0 ) {
// Retrieve any previous history
$history = get_post_meta( $post_id, '_bbp_akismet_history' );
// Sort it by the time recorded
usort( $history, 'akismet_cmp_time' );
return $history;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |