wp_clearcookie()
Deprecated from version 2.5.0. It is no longer supported and can 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.
Return
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 6.7.1
function wp_clearcookie() { _deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' ); wp_clear_auth_cookie(); }