Filter hook 'akismet_comment_nonce'
in WP Core File wp-content/plugins/akismet/class.akismet.php at line 257
Description
Check a comment for spam. or a WP_Error, if it's a REST API request and the comment should be discarded.
Occurrences
Filename |
Line Number |
wp-content/plugins/akismet/class.akismet.php |
257 |
wp-content/plugins/akismet/class.akismet.php |
1173 |
Parameters
Type |
Name |
Description |
array |
$commentdata |
|
string |
$context |
What kind of request triggered this comment check? Possible values are 'default', 'rest_api', and 'xml-rpc'. |
PHP Doc
/**
* Check a comment for spam.
*
* @param array $commentdata
* @param string $context What kind of request triggered this comment check? Possible values are 'default', 'rest_api', and 'xml-rpc'.
* @return array|WP_Error Either the $commentdata array with additional entries related to its spam status
* or a WP_Error, if it's a REST API request and the comment should be discarded.
*/