Plugin progress 20 May 2009

Article by

I am the creator of CommentLuv and site owner and administrator of ComLuv.com

Andy Bailey has written 276 articles for ComLuv.com
I normally write at http://comluv.com

Twitter: @commentluv | Facebook | Google Profile
Become a guest blogger on ComLuv just like Andy Bailey

20 May 2009 – Insert choice and request id fields to form. Major update to ajax script. Process posted data. Replace data with hidden span on display comment, Add confirm comment call and show message if spam.

add_action('comment_post',array(&$this,'approve_comment'));
approve_comment function gets passed the id of the comment

// hook the post comment to send confirm to comluv
function approve_comment($cid){
// get comment stuff from id
$comment = get_comment($cid);
if($comment->status != "spam"){

can get spam status by get_comment putting all comment data into $comment object
$comment->comment_content

ref: http://codex.wordpress.org/Function_Reference/get_comment

Speak Your Mind

*

CommentLuv badge