• Is it possible to use the akismet plugin for other plugins to for i.e. check things submitted via a contact form on wordpress?

    It would be a great deal for a contact page concept.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

    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.

    Thread Starter Stargazer

    (@stargazer)

    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.

    Thread Starter Stargazer

    (@stargazer)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Using akismet plugin for/with other plugins’ is closed to new replies.