WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1027 | * @since 1.5.0 |
| 1028 | * |
| 1029 | * @param string $author Comment author. |
| 1030 | * @param string $email Comment author's email. |
| 1031 | * @param string $url Comment author's URL. |
| 1032 | * @param string $comment Comment content. |
| 1033 | * @param string $user_ip Comment author's IP address. |
| 1034 | * @param string $user_agent Comment author's browser user agent. |
| 1035 | */ |
| 1036 | do_action( 'wp_blacklist_check', $author, $email, $url, $comment, $user_ip, $user_agent ); |
| 1037 | |
| 1038 | $mod_keys = trim( get_option('blacklist_keys') ); |
| 1039 | if ( '' == $mod_keys ) |
| 1040 | return false; // If moderation keys are empty |
| 1041 | $words = explode("\n", $mod_keys ); |
| 1042 | |
| 1043 | foreach ( (array) $words as $word ) { |
| 1044 | $word = trim($word); |
| 1045 | |