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