wp_throttle_comment_flood

Advertisement

Summery Summery

Whether a comment should be blocked because of comment flood.

Syntax Syntax

wp_throttle_comment_flood( bool $block, int $time_lastcomment, int $time_newcomment )

Parameters Parameters

$block

(Required) Whether plugin has already blocked comment.

$time_lastcomment

(Required) Timestamp for last comment.

$time_newcomment

(Required) Timestamp for new comment.

Return Return

(bool) Whether comment should be blocked.

Source Source

File: wp-includes/comment.php

			wp_cache_delete( "lastcommentmodified:$timezone", 'timeinfo' );
		}
	}

	clean_comment_cache( $id );

	$comment = get_comment( $id );

	// If metadata is provided, store it.

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply