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 |
---|---|
232 | if ( isset( $_POST[ 'signup_for' ] ) ) |
233 | $signup[ esc_html( $_POST[ 'signup_for' ] ) ] = 'checked="checked"'; |
234 | else |
235 | $signup[ 'blog' ] = 'checked="checked"'; |
236 |
|
237 | //TODO - This doesn't seem to do anything do we really need it? |
238 | $signup['user'] = isset( $signup['user'] ) ? $signup['user'] : ''; |
239 |
|
240 | // allow definition of default variables |
241 | $filtered_results = apply_filters('signup_user_init', array('user_name' => $user_name, 'user_email' => $user_email, 'errors' => $errors )); |
242 | $user_name = $filtered_results['user_name']; |
243 | $user_email = $filtered_results['user_email']; |
244 | $errors = $filtered_results['errors']; |
245 |
|
246 | ?> |
247 |
|
248 | <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2> |
249 | <form id="setupform" method="post" action="wp-signup.php"> |
250 | <input type="hidden" name="stage" value="validate-user-signup" /> |