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
array
Array 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
string
Comma-separated list of terms
$topic_id
integer
$reply_id
integer
Returns
array
Array 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
array
Array 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
array
Array 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
string
The request we are sending
$host
string
The host to send our request to
$path
string
The path from the host
$port
string
The port to use
$ip
string
Optional Override $host with an IP address
Returns
mixed
WP_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