wp_validate_user_request_key
wp_validate_user_request_key ( $request_id, $key )
Parameters:- (string) request_id ID of the request being confirmed.
- (string) key Provided key to validate.
Returns:- (true|WP_Error) True on success, WP_Error on failure.
Defined at: - Introduced in WordPress: 4.9.6
- Deprecated in WordPress: —
Description
Validates a user request by comparing the key with the request's key.