wp_clearcookie()
Deprecated since 2.5.0. It is no longer supported and may be removed in future releases. Use wp_clear_auth_cookie() instead.
Clears the authentication cookie, logging the user out. This function is deprecated.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_clearcookie();
Notes
Changelog
| Since 1.5.0 | Introduced. |
| Deprecated since 2.5.0 | Use wp_clear_auth_cookie() |
wp_clearcookie() wp clearcookie code WP 7.0
function wp_clearcookie() {
_deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' );
wp_clear_auth_cookie();
}