You appear to be a bot. Output may be restricted
Description
Generate the secret key for a user
Usage
$string = EDD_API::generate_private_key( $user_id );
Parameters
- $user_id
- ( int ) optional –
Returns
string
Source
File name: easy-digital-downloads/includes/api/class-edd-api.php
Lines:
1 to 5 of 5
public function generate_private_key( $user_id = 0 ) { $auth_key = defined( 'AUTH_KEY' ) ? AUTH_KEY : ''; $secret = hash( 'md5', $user_id . $auth_key . date( 'U' ) ); return $secret; }