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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: