akismet_result_spam

Definition:
function akismet_result_spam( $approved ) {}

Parameters

  • $approved

Defined filters

  • akismet_spam_count_incr
    apply_filters('akismet_spam_count_incr', 1)

Source code

function akismet_result_spam( $approved ) {

	// bump the counter here instead of when the filter is added to reduce the possibility of overcounting

	if ( $incr = apply_filters('akismet_spam_count_incr', 1) )

		update_option( 'akismet_spam_count', get_option('akismet_spam_count') + $incr );

	// this is a one-shot deal

	remove_filter( 'pre_comment_approved', 'akismet_result_spam' );

	return 'spam';

}

475

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

Leave a comment