signup_nonce_check() WordPress Function
The signup_nonce_check() function is used to verify the nonce value passed in the signup form. This function is important because it helps to ensure that the user who is signing up is actually the user who is supposed to be signing up.
signup_nonce_check( array $result ) #
Processes the signup nonce created in signup_nonce_fields().
Parameters
- $result
(array)(Required)
Return
(array)
Source
File: wp-includes/ms-functions.php
2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 | function signup_nonce_check( $result ) { if ( ! strpos ( $_SERVER [ 'PHP_SELF' ], 'wp-signup.php' ) ) { return $result ; } if ( ! wp_verify_nonce( $_POST [ '_signup_form' ], 'signup_form_' . $_POST [ 'signup_form_id' ] ) ) { $result [ 'errors' ]->add( 'invalid_nonce' , __( 'Unable to submit this form, please try again.' ) ); } return $result ; } |
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |