Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_flood_filter

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
896           /**
897            * Filters the comment flood status.
898            *
899            * @since 2.1.0
900            *
901            * @param bool $bool             Whether a comment flood is occurring. Default false.
902            * @param int  $time_lastcomment Timestamp of when the last comment was posted.
903            * @param int  $time_newcomment  Timestamp of when the new comment was posted.
904            */
905           $flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment );
906           if ( $flood_die ) {
907                /**
908                 * Fires before the comment flood message is triggered.
909                 *
910                 * @since 1.5.0
911                 *
912                 * @param int $time_lastcomment Timestamp of when the last comment was posted.
913                 * @param int $time_newcomment  Timestamp of when the new comment was posted.
914                 */