wp_create_nonce

Advertisement

Summery Summery

Creates a cryptographic token tied to a specific action, user, user session, and window of time.

Syntax Syntax

wp_create_nonce( string|int $action = -1 )

Parameters Parameters

$action

(Optional) Scalar value to add context to the nonce.

Default value: -1

Return Return

(string) The token.

Source Source

File: wp-includes/pluggable.php

	}
endif;

if ( ! function_exists( 'wp_create_nonce' ) ) :
	/**
	 * Creates a cryptographic token tied to a specific action, user, user session,
	 * and window of time.
	 *
	 * @since 2.0.3
	 * @since 4.0.0 Session tokens were integrated with nonce creation
	 *
	 * @param string|int $action Scalar value to add context to the nonce.
	 * @return string The token.

Advertisement

Changelog Changelog

Changelog
Version Description
4.0.0 Session tokens were integrated with nonce creation
2.0.3 Introduced.

Advertisement

Leave a Reply