signup_hidden_fields
Action HookDescription
Filters the default site creation variables for the site sign-up form. }Hook Information
File Location |
wp-signup.php
View on GitHub
|
Hook Type | Action |
Line Number | 781 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$signup_blog_defaults
|
{ An array of default site creation variables. |
Usage Examples
Basic Usage
<?php
// Hook into signup_hidden_fields
add_action('signup_hidden_fields', 'my_custom_function', 10, 1);
function my_custom_function($signup_blog_defaults) {
// Your custom code here
}
Source Code Context
wp-signup.php:781
- How this hook is used in WordPress core
<?php
776 <input type="hidden" name="stage" value="validate-blog-signup" />
777 <input type="hidden" name="user_name" value="<?php echo esc_attr( $user_name ); ?>" />
778 <input type="hidden" name="user_email" value="<?php echo esc_attr( $user_email ); ?>" />
779 <?php
780 /** This action is documented in wp-signup.php */
781 do_action( 'signup_hidden_fields', 'validate-site' );
782 ?>
783 <?php show_blog_form( $blogname, $blog_title, $errors ); ?>
784 <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Sign up' ); ?>" /></p>
785 </form>
786 <?php
PHP Documentation
<?php
/**
* Filters the default site creation variables for the site sign-up form.
*
* @since 3.0.0
*
* @param array $signup_blog_defaults {
* An array of default site creation variables.
*
* @type string $user_name The user username.
* @type string $user_email The user email address.
* @type string $blogname The blogname.
* @type string $blog_title The title of the site.
* @type WP_Error $errors A WP_Error object with possible errors relevant to new site creation variables.
* }
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-signup.php
Related Hooks
Related hooks will be displayed here in future updates.