comment_flood_message

comment_flood_message

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comment_flood_message') is found 2 times:

  • /wp-includes/comment.php line 771
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
        );
     
        if ( $is_flood ) {
            /** This filter is documented in wp-includes/comment-template.php */
            $comment_flood_message = apply_filters( 'comment_flood_message', __( 'You are posting comments too quickly. Slow down.' ) );
     
            return new WP_Error( 'comment_flood', $comment_flood_message, 429 );
        }
     
        return wp_check_comment_data( $commentdata );
    }
  • /wp-includes/comment.php line 879
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    * @since 5.2.0
     *
     * @param string $comment_flood_message Comment flood error message.
     */
    $comment_flood_message = apply_filters( 'comment_flood_message', __( 'You are posting comments too quickly. Slow down.' ) );
     
    if ( wp_doing_ajax() ) {
        die( $comment_flood_message );
    }
     
    wp_die( $comment_flood_message, 429 );