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 |
---|---|
31 | /* checking the nickname has been typed */ |
32 | if (empty($_POST["new_nickname"])) { |
33 | die (__("<strong>ERROR</strong>: please enter your nickname (can be the same as your username)")); |
34 | return false; |
35 | } |
36 |
|
37 | $new_user_login = wp_specialchars($_POST['new_user_login']); |
38 | $pass1 = $_POST['pass1']; |
39 | $pass2 = $_POST['pass2']; |
40 | do_action('check_passwords', array($new_user_login, &$pass1, &$pass2)); |
41 |
|
42 | if ( '' == $pass1 ) { |
43 | if ( '' != $pass2 ) |
44 | die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.")); |
45 | $updatepassword = ''; |
46 | } else { |
47 | if ( '' == $pass2) |
48 | die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.")); |
49 | if ( $pass1 != $pass2 ) |