Converts topic/reply data into Akismet comment checking format
check_post(array $post_data = array()) : array
| since |
2.0.0 bbPress (r3277) |
Parameters
$post_data
array
Returns
arrayArray of post data
Handle any terms submitted with a post flagged as spam
filter_post_terms(string $terms = '', integer $topic_id = 0, integer $reply_id = 0) : array
| since |
2.0.0 bbPress (r3308) |
Parameters
$terms
stringComma-separated list of terms
$topic_id
integer
$reply_id
integer
Returns
arrayArray of existing topic terms
Get the Akismet history of a Post
get_post_history(integer $post_id = 0) : array
| since |
2.0.0 bbPress (r3308) |
Parameters
$post_id
integer
Returns
arrayArray of Akismet history
Submit a post for spamming or hamming
submit_post(integer $post_id = 0) : array
| since |
2.0.0 bbPress (r3277) |
| global |
string $akismet_api_host |
| global |
string $akismet_api_port |
| global |
object $current_user |
| global |
object $current_site |
Parameters
$post_id
integer
Returns
arrayArray of existing topic terms
Submit data to Akismet service with unique bbPress User Agent
http_post(string $request, string $host, string $path, string $port = 80, string $ip = '') : mixed
This code is directly taken from the akismet_http_post() function and
documented to bbPress 2.0 standard.
| since |
2.0.0 bbPress (r3466) |
Parameters
$request
stringThe request we are sending
$host
stringThe host to send our request to
$path
stringThe path from the host
$port
stringThe port to use
$ip
stringOptional Override $host with an IP address
Returns
mixedWP_Error on error, array on success, empty on failure
Update Akismet history of a Post
update_post_history(integer $post_id = 0, string $message = null, string $event = null)
| since |
2.0.0 bbPress (r3308) |
Parameters
$post_id
integer
$message
string
$event
string