You appear to be a bot. Output may be restricted
Description
Return true is the akismet call says the message is not spam
Usage
$bool = oiku_call_akismet( $query_string );
Parameters
- $query_string
- ( string ) required –
Returns
bool true is the message is not spamSource
File name: oik-user/shortcodes/oik-contact-user.phpLines:
1 to 8 of 8
function oiku_call_akismet( $query_string ) { global $akismet_api_host, $akismet_api_port; $response = akismet_http_post( $query_string, $akismet_api_host, '/1.1/comment-check', $akismet_api_port ); $result = false; $send = 'false' == trim( $response[1] ); // 'true' is spam, 'false' is not spam return( $send ); }View on GitHub