signup_hidden_fields

Hidden sign-up form fields output when creating another site or user.

Description

do_action( 'signup_hidden_fields', (string) $create_another_site ); 

Parameters (1)

0. $create_another_site (string) => 'create-another-site'
A string describing the steps of the sign-up process. The value can be create-another-site,, validate-user., or validate-site.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'signup_hidden_fields', $create_another_site ); 
The following example is for adding a hook callback.
  1. // define the signup_hidden_fields callback 
  2. function action_signup_hidden_fields( $create_another_site ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'signup_hidden_fields', 'action_signup_hidden_fields', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'signup_hidden_fields', 'action_signup_hidden_fields', 10, 1 ); 

Defined (3)

The action is defined in the following location(s).

/wp-signup.php  
  1. do_action( 'signup_hidden_fields', 'create-another-site' ); 
  1. do_action( 'signup_hidden_fields', 'validate-user' ); 
  1. do_action( 'signup_hidden_fields', 'validate-site' );