BBP_Akismet::get_post_history( int $post_id )
Get a post’s Akismet history
Description
Parameters
- $post_id
-
(Required)
Return
(array) Array of a post's Akismet history
Source
File: bp-forums/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
Version | Description |
---|---|
bbPress (r3308) | 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.