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

(bool) (Required) Whether plugin has already blocked comment.

$time_lastcomment

(int) (Required) Timestamp for last comment.

$time_newcomment

(int) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.