signup_hidden_fields WordPress Action Hook

The signup_hidden_fields hook allows you to add hidden fields to the user registration form. This can be useful for creating extra user meta fields or for pre- filling form fields with default values.

do_action( 'signup_hidden_fields', string $context ) #

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


Parameters

$context

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


Top ↑

Source

File: wp-signup.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.