WordPress at a glance
function is not described

wp_clearcookie() WP 1.5.0

Deprecated in 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.

Usage

wp_clearcookie();

Notes

  • See: wp_clear_auth_cookie()

Changelog

Since 1.5.0 Introduced.
Deprecated Since 2.5.0 Use wp_clear_auth_cookie()

Code of wp_clearcookie() WP 5.5.2

<?php
function wp_clearcookie() {
	_deprecated_function( __FUNCTION__, '2.5.0', 'wp_clear_auth_cookie()' );
	wp_clear_auth_cookie();
}