function akismet_result_spam( $approved ) {}


  • $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';



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: