Uses
| Uses | Description |
|---|---|
| wp-includes/functions.php: wp_nonce_field() | Retrieve or display nonce hidden field for forms. |
Add a nonce field to the signup page.
File: wp-includes/ms-functions.php
function signup_nonce_fields() {
$id = mt_rand();
echo "<input type='hidden' name='signup_form_id' value='{$id}' />";
wp_nonce_field( 'signup_form_' . $id, '_signup_form', false );
} | Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/signup_nonce_fields