comments WHERE comment_author_email = '$data[comment_author_email]' AND comment_author = '$data[comment_author]' AND comment_approved = 1"; $comment_list = $wpdb->get_results($sql, ARRAY_A); if ($data['comment_author_url'] != '' and empty($comment_list) ){ $data['comment_approved'] = 'spam'; $data['comment_content'] = $data['comment_content'].'.'; wp_insert_comment($data); wp_die( __('Sorry, You Are Not Permitted To Submit A Website Address In Blog Comments On Your Very First Comment In This Blog. Click Your Back Button, Delete The Website In The Website Field And Submit Your Comment For Approval.') ); } else{ return $data; } } add_filter( 'preprocess_comment' , 'filter_handler'); ?>