akismet_spam_caught

akismet_spam_caught

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('akismet_spam_caught') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet.php line 262
    			self::$last_comment_result = 'spam';
    
    			$discard = ( isset( $commentdata['akismet_pro_tip'] ) && $commentdata['akismet_pro_tip'] === 'discard' && self::allow_discard() );
    
    			do_action( 'akismet_spam_caught', $discard );
    
    			if ( $discard ) {
    				// The spam is obvious, so we're bailing out early. 
    				// akismet_result_spam() won't be called so bump the counter here
    				if ( $incr = apply_filters( 'akismet_spam_count_incr', 1 ) ) {
    					update_option( 'akismet_spam_count', get_option( 'akismet_spam_count' ) + $incr );