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 comment