Akismet Comment
Creates a new instance extracting the userIp, userAgent, referrer and serverEnv environment variables from a Servlet request.
See the Akismet API for more details.
See also
Creates a new instance.
See the Akismet API for more details.
Parameters
IP address of the comment submitter.
User agent string of the web browser submitting the comment.
Creates a new instance extracting the userIp, userAgent, referrer and serverEnv environment variables from a Servlet request.
See the Akismet API for more details.
See also
Creates a new instance.
See the Akismet API for more details.
Parameters
IP address of the comment submitter.
User agent string of the web browser submitting the comment.
Akismet Comment
- A comment to send to Akismet.
Most everything is optional. Performance can drop dramatically if you choose to exclude data points. The more data you send Akismet about each comment, the greater the accuracy. They recommend erring on the side of including too much data.
See the Akismet API for more details.
Parameters
IP address of the comment submitter.
User agent string of the web browser submitting the comment.
A comment to send to Akismet.
Most everything is optional. Performance can drop dramatically if you choose to exclude data points. The more data you send Akismet about each comment, the greater the accuracy. They recommend erring on the side of including too much data.
See the Akismet API for more details.
Parameters
IP address of the comment submitter.
User agent string of the web browser submitting the comment.
Constructors
-date To Gmt
Converts a date to a UTC timestamp. (ISO 8601)
See also
Converts a locale date/time to a UTC timestamp. (ISO 8601)
See also
Converts a date to a UTC timestamp. (ISO 8601)
See also
Converts a locale date/time to a UTC timestamp. (ISO 8601)
See also
json Comment
(Re)Creates a comment from a JSON string.
See also
(Re)Creates a comment from a JSON string.
See also
Comment Check.
This is the call you will make the most. It takes a number of arguments and characteristics about the submitted content and then returns a thumbs up or thumbs down. Performance can drop dramatically if you choose to exclude data points. The more data you send Akismet about each comment, the greater the accuracy. They recommend erring on the side of including too much data
By default, if an error (IO, empty response from Akismet, etc.) occurs the function will return false
and log the error, use the trueOnError
parameter to change this behavior.
See the Akismet API for more details.
Return
true
if the comment is spam, false
if the comment is not.
Parameters
Set to return true
on error.
Comment Check.
This is the call you will make the most. It takes a number of arguments and characteristics about the submitted content and then returns a thumbs up or thumbs down. Performance can drop dramatically if you choose to exclude data points. The more data you send Akismet about each comment, the greater the accuracy. They recommend erring on the side of including too much data
By default, if an error (IO, empty response from Akismet, etc.) occurs the function will return false
and log the error, use the trueOnError
parameter to change this behavior.
See the Akismet API for more details.
Return
true
if the comment is spam, false
if the comment is not.
Parameters
Set to return true
on error.