Warning: This function has been deprecated. Use wp_clear_auth_cookie() instead.

wp_clearcookie() WordPress Function

The wp_clearcookie() function is used to clear a user's cookies. This function is typically used when a user logs out of their account.

wp_clearcookie() #

Clears the authentication cookie, logging the user out. This function is deprecated.


Description

Top ↑

See also


Top ↑

Source

File: wp-includes/pluggable-deprecated.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.5.0Use wp_clear_auth_cookie()
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.