You should have a look at the Akismet API:
http://akismet.com/development/api/
If you fill in the right sort of information, then yes, you can use the Akismet plugin’s functionality to check things of that nature.
I think I am pretty stuck as there is no separate check function in that plugin avaliable.
looks like I’d have to do most stuff manually. At least I can reuse some functions like validating the key.
hm – no joy here.
My idea was:
if ( function_exists( 'akismet_auto_check_comment' ) ) {
if ( akismet_verify_key( get_option('wordpress_api_key')) == 'valid') {
// key is valid - give it a shot
...
that way we know, the plugin is active and working.
akismet_auto_check_comment() in the akismet plugin uses internal comment handling; but it uses akismet_http_post(). So I thought it was the easiest way to copy akismet_auto_check_comment() in my plugin.
but akismet_http_post() always results to ‘true’ -> post is spam…
now I’m really out of ideas as I do not want to use an external class.