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 |
---|---|
421 | * |
422 | * @param array $signup_user_defaults { |
423 | * An array of default user variables. |
424 | * |
425 | * @type string $user_name The user username. |
426 | * @type string $user_email The user email address. |
427 | * @type array $errors An array of possible errors relevant to the sign-up user. |
428 | * } |
429 | */ |
430 | $filtered_results = apply_filters( 'signup_user_init', $signup_user_defaults ); |
431 | $user_name = $filtered_results['user_name']; |
432 | $user_email = $filtered_results['user_email']; |
433 | $errors = $filtered_results['errors']; |
434 |
|
435 | ?> |
436 |
|
437 | <h2><?php printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name ) ?></h2> |
438 | <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate"> |
439 | <input type="hidden" name="stage" value="validate-user-signup" /> |