signup_hidden_fields
Fires when hidden sign-up form fields output when creating another site or user.
Usage
add_action( 'signup_hidden_fields', 'wp_kama_signup_hidden_fields_action' ); /** * Function for `signup_hidden_fields` action-hook. * * @param string $context A string describing the steps of the sign-up process. The value can be 'create-another-site', 'validate-user', or 'validate-site'. * * @return void */ function wp_kama_signup_hidden_fields_action( $context ){ // action... }
- $context(string)
- A string describing the steps of the sign-up process. The value can be 'create-another-site', 'validate-user', or 'validate-site'.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
signup_hidden_fields
signup_hidden_fields
signup_hidden_fields
wp-signup.php 409
do_action( 'signup_hidden_fields', 'create-another-site' );
wp-signup.php 629
do_action( 'signup_hidden_fields', 'validate-user' );
wp-signup.php 774
do_action( 'signup_hidden_fields', 'validate-site' );
Where the hook is used in WordPress
wp-includes/ms-default-filters.php 71
add_action( 'signup_hidden_fields', 'signup_nonce_fields' );