akismet_set_comment_status

Definition:
function akismet_set_comment_status( $comment_id, $status ) {}

Parameters

  • $comment_id
  • $status

Source code

function akismet_set_comment_status( $comment_id, $status ) {

	if ( $status == 'spam' ) {

		akismet_submit_spam_comment( $comment_id );

	} elseif ( $status == 'approve' ) {

		akismet_submit_nonspam_comment( $comment_id );

	}

}

483

No comments yet... Be the first to leave a reply!

Leave a comment