Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_check_comment_disallowed_list

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
1350       * @since 5.5.0
1351       *
1352       * @param string $author     Comment author.
1353       * @param string $email      Comment author's email.
1354       * @param string $url        Comment author's URL.
1355       * @param string $comment    Comment content.
1356       * @param string $user_ip    Comment author's IP address.
1357       * @param string $user_agent Comment author's browser user agent.
1358       */
1359      do_action( 'wp_check_comment_disallowed_list', $author, $email, $url, $comment, $user_ip, $user_agent );
1360
1361      $mod_keys = trim( get_option( 'disallowed_keys' ) );
1362      if ( '' === $mod_keys ) {
1363           return false; // If moderation keys are empty.
1364      }
1365
1366      // Ensure HTML tags are not being used to bypass the list of disallowed characters and words.
1367      $comment_without_html = wp_strip_all_tags( $comment );
1368