wp_setcookie
wp_setcookie ( $username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false )
Parameters:- (string) username The user's username
- (string) password Optional. The user's password
- (bool) already_md5 Optional. Whether the password has already been through MD5
- (string) home Optional. Will be used instead of COOKIEPATH if set
- (string) siteurl Optional. Will be used instead of SITECOOKIEPATH if set
- (bool) remember Optional. Remember that the user is logged in
See:Defined at: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: 2.5.0
Description
Sets a cookie for a user who just logged in. This function is deprecated.