Function: wp_generate_user_request_key

wp_generate_user_request_key( integer $request_id )

Returns a confirmation key for a user action and stores the hashed version for future comparison.

Parameters

Name Type(s) Default Value Description
$request_id integer

Request ID.

Returns

string

Confirmation key.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.