signup_nonce_fields()WP 3.0.0

Adds a nonce field to the signup page.

No Hooks.

Return

null. Nothing.

Usage

signup_nonce_fields();

Changelog

Since 3.0.0 Introduced.

signup_nonce_fields() code WP 6.1.1

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 );
}