[ Index ]

PHP Cross Reference of BBPress




/src/includes/extend/ -> akismet.php (summary)

Main bbPress Akismet Class

File Size: 892 lines (26 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BBP_Akismet:: (14 methods):

Class: BBP_Akismet  - X-Ref

Loads Akismet extension

__construct()   X-Ref
The main bbPress Akismet loader

since: 2.0.0 bbPress (r3277)

setup_actions()   X-Ref
Setup the admin hooks

since: 2.0.0 bbPress (r3277)

check_post( $post_data = array()   X-Ref
Converts topic/reply data into Akismet comment checking format

param: array $post_data
return: array Array of post data
since: 2.0.0 bbPress (r3277)

parse_response( $post_data = array()   X-Ref
Parse the response from the Akismet service, and alter the post data as
necessary. For example, switch the status to `spam` if spammy.

Note: this method also skiis 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.

param: array $post_data
return: array
since: 2.6.0 bbPress (r6873)

submit_post( $post_id = 0 )   X-Ref
Submit a post for spamming or hamming

param: int $post_id
return: array Array of existing topic terms
since: 2.0.0 bbPress (r3277)

maybe_spam( $post_data = array()   X-Ref
Ping Akismet service and check for spam/ham response

param: array $post_data
param: string $check Accepts check|submit
param: string $spam Accepts spam|ham
return: array Array of post data
since: 2.0.0 bbPress (r3277)

update_post_meta( $post_id = 0, $_post = false )   X-Ref
Update post meta after a spam check

param: int $post_id
param: object $_post
since: 2.0.0 bbPress (r3308)

update_post_history( $post_id = 0, $message = null, $event = null )   X-Ref
Update Akismet history of a Post

param: int $post_id
param: string $message
param: string $event
since: 2.0.0 bbPress (r3308)

get_post_history( $post_id = 0 )   X-Ref
Get the Akismet history of a Post

param: int $post_id
return: array Array of Akismet history
since: 2.0.0 bbPress (r3308)

filter_post_terms( $terms = '', $topic_id = 0, $reply_id = 0 )   X-Ref
Handle any terms submitted with a post flagged as spam

param: string $terms Comma-separated list of terms
param: int $topic_id
param: int $reply_id
return: array Array of existing topic terms
since: 2.0.0 bbPress (r3308)

http_post( $request, $host, $path, $port = 80, $ip = '' )   X-Ref
Submit data to Akismet service with unique bbPress User Agent

This code is directly taken from the akismet_http_post() function and
documented to bbPress 2.0 standard.

param: string $request The request we are sending
param: string $host The host to send our request to
param: string $path The path from the host
param: string $port The port to use
param: string $ip Optional Override $host with an IP address
return: mixed WP_Error on error, array on success, empty on failure
since: 2.0.0 bbPress (r3466)

get_user_roles( $user_id = 0 )   X-Ref
Return a user's roles on this site (including super_admin)

param: int $user_id
return: boolean
since: 2.3.0 bbPress (r4812)

add_metaboxes()   X-Ref
Add Aksimet History meta-boxes to topics and replies

since: 2.4.0 bbPress (r5049)

history_metabox()   X-Ref
Output for Akismet History meta-box

since: 2.4.0 bbPress (r5049)

Generated: Sun Sep 27 01:01:22 2020 Cross-referenced by PHPXref 0.7.1