Support » Plugins » Hacks » Comment posting via the API

  • I’ve got a plugin which is bringing in comments from an external source.

    It builds up the structure as follows:

    $data = array(
    	'comment_post_ID' => $comdata_row->wp_post_id,
    	'comment_author' => $fbuserinfo[0]['name'],
    	'comment_author_email' => $commemail,
    	'comment_author_url' => $fbuserinfo[0]['profile_url'],
    	'comment_content' => $comment['text'],
    	'comment_author_IP' => '',
    	'comment_date' => $time,
    	'comment_date_gmt' => $time,
    	'comment_approved' => $comment_approve,

    and then does:


    The problem is that several Anti-spam captchas fire when this happens and of course as there is no interaction and the comment is lost.

    So how do I post a comment using the WP functions that won’t make anti-spam plugsin fire?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Comment posting via the API’ is closed to new replies.