Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_blacklist_check

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
970       * @since 1.5.0
971       *
972       * @param string $author     Comment author.
973       * @param string $email      Comment author's email.
974       * @param string $url        Comment author's URL.
975       * @param string $comment    Comment content.
976       * @param string $user_ip    Comment author's IP address.
977       * @param string $user_agent Comment author's browser user agent.
978       */
979      do_action( 'wp_blacklist_check', $author, $email, $url, $comment, $user_ip, $user_agent );
980
981      $mod_keys = trim( get_option('blacklist_keys') );
982      if ( '' == $mod_keys )
983           return false; // If moderation keys are empty
984      $words = explode("\n", $mod_keys );
985
986      foreach ( (array) $words as $word ) {
987           $word = trim($word);
988