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
1228           /**
1229            * Filter the comment flood status.
1230            *
1231            * @since 2.1.0
1232            *
1233            * @param bool $bool             Whether a comment flood is occurring. Default false.
1234            * @param int  $time_lastcomment Timestamp of when the last comment was posted.
1235            * @param int  $time_newcomment  Timestamp of when the new comment was posted.
1236            */
1237           $flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment );
1238           if ( $flood_die ) {
1239                /**
1240                 * Fires before the comment flood message is triggered.
1241                 *
1242                 * @since 1.5.0
1243                 *
1244                 * @param int $time_lastcomment Timestamp of when the last comment was posted.
1245                 * @param int $time_newcomment  Timestamp of when the new comment was posted.
1246                 */