akismet_transition_comment_status

Definition:
function akismet_transition_comment_status( $new_status, $old_status, $comment ) {}

Parameters

  • $new_status
  • $old_status
  • $comment

Source code

function akismet_transition_comment_status( $new_status, $old_status, $comment ) {

	if ( $new_status == $old_status )

		return;



	if ( $new_status == 'spam' ) {

		akismet_submit_spam_comment( $comment->comment_ID );

	} elseif ( $old_status == 'spam' && ( $new_status == 'approved' || $new_status == 'unapproved' ) ) {

		akismet_submit_nonspam_comment( $comment->comment_ID );

	}

}

521

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 )

Google photo

You are commenting using your Google 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: