Loads Akismet extension.
| since | 2.0.0 bbPress (r3277) |
|---|---|
| package | bbPress |
| subpackage | Akismet |
__construct()
| since | 2.0.0 bbPress (r3277) |
|---|
check_post(array $post_data = array()) : array
| since | 2.0.0 bbPress (r3277) |
|---|
array
arrayArray of post data.delete_old_spam()
| since | 2.6.7 bbPress (r7203) |
|---|---|
| global | wpdb $wpdb |
filter_post_terms(string $terms= '', integer $topic_id= 0, integer $reply_id= 0) : array
| since | 2.0.0 bbPress (r3308) |
|---|
stringComma-separated list of terms.
integer
integer
arrayArray of existing topic terms.get_delete_interval(string $filter = '') : integer
| since | 2.6.9 bbPress (r7225) |
|---|
stringThe name of the filter to run.
integerget_delete_limit(string $filter = '') : integer
| since | 2.6.9 bbPress (r7225) |
|---|
stringThe name of the filter to run.
integerget_post_history(integer $post_id = 0) : array
| since | 2.0.0 bbPress (r3308) |
|---|
integer
arrayArray of Akismet history.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 |
integerPost id.
arrayArray of existing topic terms.update_post_history(integer $post_id= 0, string $message= null, string $event= null)
| since | 2.0.0 bbPress (r3308) |
|---|---|
| since | 2.7.0 bbPress (r7355) Changed from private to public. |
integer
string
string
get_response(string $host_and_path= '', array $http_args= array()) : array
| since | 2.6.7 (bbPress r7194) |
|---|
stringScheme-less URL.
arrayArray of arguments for wp_remote_post().
arrayget_user_roles(integer $user_id = 0) : boolean
| since | 2.3.0 bbPress (r4812) |
|---|
integerUser id.
booleanhttp_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) |
|---|
stringThe request we are sending.
stringThe host to send our request to.
stringThe path from the host.
stringThe port to use.
stringOptional Override $host with an IP address.
mixedWP_Error on error, array on success, empty on failure.maybe_spam(array $post_data= array(), string $check= 'check', string $spam= 'spam') : array
| since | 2.0.0 bbPress (r3277) |
|---|---|
| global | string $akismet_api_host |
| global | string $akismet_api_port |
array
stringAccepts check|submit.
stringAccepts spam|ham.
arrayArray of post data.parse_response(array $post_data = array()) : array
Note: this method also is responsible for allowing users who can moderate to never have their posts marked as spam. This is because they are "trusted" users. However, their posts are still sent to Akismet to be checked.
| since | 2.6.0 bbPress (r6873) |
|---|
array
arraysetup_actions()
| since | 2.0.0 bbPress (r3277) |
|---|---|
| access | private |
$last_post : array
array()| since | 2.0.0 bbPress (r3277) |
|---|