Akismet Akismet(
String
$blogUrl, String
$apiKey, String[]
$comment
)
|
|
Constructor
Set instance variables, connect to Akismet, and check API key
Parameters:
|
String |
$blogUrl: |
The URL to your own blog |
|
String |
$apiKey: |
Your wordpress API key |
|
String[] |
$comment: |
A formatted comment array to be examined by the Akismet service |
Query the Akismet and determine if the comment is spam or not
Submit a false-positive comment as "ham" to the Akismet server
Submit this comment as an unchecked spam to the Akismet server
void _formatCommentArray(
)
|
|
Format the comment array in accordance to the Akismet API
API Tags:
String _getQueryString(
)
|
|
Build a query string for use with HTTP requests
API Tags:
boolean _isValidApiKey(
String
$key
)
|
|
Check with the Akismet server to determine if the API key is valid
Parameters:
|
String |
$key: |
The Wordpress API key passed from the constructor argument |
API Tags: